diff options
-rw-r--r-- | src/components/policy/policy_regular/src/policy_manager_impl.cc | 3 | ||||
-rw-r--r-- | src/components/policy/policy_regular/src/status.cc | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/components/policy/policy_regular/src/policy_manager_impl.cc b/src/components/policy/policy_regular/src/policy_manager_impl.cc index 3a4e9d6acb..38f78cab65 100644 --- a/src/components/policy/policy_regular/src/policy_manager_impl.cc +++ b/src/components/policy/policy_regular/src/policy_manager_impl.cc @@ -927,7 +927,8 @@ StatusNotifier PolicyManagerImpl::AddApplication( device_consent); } else { PromoteExistedApplication(application_id, device_consent); - return utils::MakeShared<utils::CallNothing>(); + return utils::MakeShared<CallStatusChange>(update_status_manager_, + device_consent); } } diff --git a/src/components/policy/policy_regular/src/status.cc b/src/components/policy/policy_regular/src/status.cc index 0d42c807d8..8d65c606d0 100644 --- a/src/components/policy/policy_regular/src/status.cc +++ b/src/components/policy/policy_regular/src/status.cc @@ -68,6 +68,9 @@ void policy::UpdateNeededStatus::ProcessEvent( case kOnResetPolicyTableNoUpdate: manager->SetNextStatus(utils::MakeShared<UpToDateStatus>()); break; + case kOnNewAppRegistered: + manager->SetNextStatus(utils::MakeShared<UpdateNeededStatus>()); + break; default: break; } |