summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/commands/hmi/add_statistics_info_notification.cc
diff options
context:
space:
mode:
authorAlexander Kutsan <AKutsan@luxoft.com>2016-08-26 18:48:22 +0300
committerAlexander Kutsan <AKutsan@luxoft.com>2016-08-26 18:48:57 +0300
commitd73e6dc8724c5799fae14efd4dcb214af74e4904 (patch)
tree9ebed8b422490c4d669e90e70783e4f5b55b65c9 /src/components/application_manager/src/commands/hmi/add_statistics_info_notification.cc
parentc201c11a35d360c0b96f36b103a2590bfaeb6026 (diff)
parent61ef8c42badb879216f53d240e1101b9f83a9bb7 (diff)
downloadsdl_core-d73e6dc8724c5799fae14efd4dcb214af74e4904.tar.gz
Merge branch 'release/4.1.0'
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.cc13
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
-