diff options
Diffstat (limited to 'src/components/application_manager/src/commands/hmi/add_statistics_info_notification.cc')
-rw-r--r-- | src/components/application_manager/src/commands/hmi/add_statistics_info_notification.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/components/application_manager/src/commands/hmi/add_statistics_info_notification.cc b/src/components/application_manager/src/commands/hmi/add_statistics_info_notification.cc index 73c9a49def..ef75eba1e2 100644 --- a/src/components/application_manager/src/commands/hmi/add_statistics_info_notification.cc +++ b/src/components/application_manager/src/commands/hmi/add_statistics_info_notification.cc @@ -39,23 +39,20 @@ namespace application_manager { namespace commands { AddStatisticsInfoNotification::AddStatisticsInfoNotification( - const MessageSharedPtr& message) - : NotificationFromHMI(message) { -} + const MessageSharedPtr& message, ApplicationManager& application_manager) + : NotificationFromHMI(message, application_manager) {} -AddStatisticsInfoNotification::~AddStatisticsInfoNotification() { -} +AddStatisticsInfoNotification::~AddStatisticsInfoNotification() {} void AddStatisticsInfoNotification::Run() { LOG4CXX_AUTO_TRACE(logger_); int type = (*message_)[strings::msg_params][hmi_notification::statistic_type] - .asInt(); + .asInt(); - policy::PolicyHandler::instance()->AddStatisticsInfo(type); + application_manager_.GetPolicyHandler().AddStatisticsInfo(type); } } // namespace commands } // namespace application_manager - |