summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/commands/hmi/on_system_info_changed_notification.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/commands/hmi/on_system_info_changed_notification.cc')
-rw-r--r--src/components/application_manager/src/commands/hmi/on_system_info_changed_notification.cc16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/components/application_manager/src/commands/hmi/on_system_info_changed_notification.cc b/src/components/application_manager/src/commands/hmi/on_system_info_changed_notification.cc
index fb5a9abc43..00b3649284 100644
--- a/src/components/application_manager/src/commands/hmi/on_system_info_changed_notification.cc
+++ b/src/components/application_manager/src/commands/hmi/on_system_info_changed_notification.cc
@@ -31,7 +31,7 @@
*/
#include "application_manager/commands/hmi/on_system_info_changed_notification.h"
-#include "application_manager/policies/policy_handler.h"
+#include "application_manager/application_manager.h"
#include "application_manager/message_helper.h"
namespace application_manager {
@@ -39,12 +39,10 @@ namespace application_manager {
namespace commands {
OnSystemInfoChangedNotification::OnSystemInfoChangedNotification(
- const MessageSharedPtr& message)
- : NotificationFromHMI(message) {
-}
+ const MessageSharedPtr& message, ApplicationManager& application_manager)
+ : NotificationFromHMI(message, application_manager) {}
-OnSystemInfoChangedNotification::~OnSystemInfoChangedNotification() {
-}
+OnSystemInfoChangedNotification::~OnSystemInfoChangedNotification() {}
void OnSystemInfoChangedNotification::Run() {
LOG4CXX_AUTO_TRACE(logger_);
@@ -52,13 +50,11 @@ void OnSystemInfoChangedNotification::Run() {
(*message_)[strings::msg_params][strings::language].asUInt();
const std::string language =
application_manager::MessageHelper::CommonLanguageToString(
- static_cast<hmi_apis::Common_Language::eType>(lang_code));
+ static_cast<hmi_apis::Common_Language::eType>(lang_code));
- policy::PolicyHandler::instance()->OnSystemInfoChanged(language);
+ application_manager_.GetPolicyHandler().OnSystemInfoChanged(language);
}
} // namespace commands
} // namespace application_manager
-
-