summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Lytvynenko <ILytvynenko@luxoft.com>2017-04-18 12:28:26 +0300
committerIra Lytvynenko <ILytvynenko@luxoft.com>2017-04-18 12:33:09 +0300
commitb25802ccef1cb94f1a0ed6d2f5c0e443327ee874 (patch)
treebfa6ab9813a84e5611850a50b5af4cc48c0acd52
parent9e7a39af22c3587580cb2dcff44e6a9b6956d02c (diff)
downloadsdl_core-b25802ccef1cb94f1a0ed6d2f5c0e443327ee874.tar.gz
Add missed notification SDL.OnStatusUpdate(UPDATE_NEEDED)
in case of failed retry strategy during previous IGN_ON
-rw-r--r--src/components/policy/policy_regular/src/policy_manager_impl.cc3
-rw-r--r--src/components/policy/policy_regular/src/status.cc3
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;
}