summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/commands/command_notification_from_mobile_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/commands/command_notification_from_mobile_impl.cc')
-rw-r--r--src/components/application_manager/src/commands/command_notification_from_mobile_impl.cc15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/components/application_manager/src/commands/command_notification_from_mobile_impl.cc b/src/components/application_manager/src/commands/command_notification_from_mobile_impl.cc
index ee7afaddf9..5b44abeec9 100644
--- a/src/components/application_manager/src/commands/command_notification_from_mobile_impl.cc
+++ b/src/components/application_manager/src/commands/command_notification_from_mobile_impl.cc
@@ -31,7 +31,7 @@
*/
#include "application_manager/commands/command_notification_from_mobile_impl.h"
-#include "application_manager/application_manager_impl.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 {
CommandNotificationFromMobileImpl::CommandNotificationFromMobileImpl(
- const MessageSharedPtr& message)
- : CommandImpl(message) {
-}
+ const MessageSharedPtr& message, ApplicationManager& application_manager)
+ : CommandImpl(message, application_manager) {}
-CommandNotificationFromMobileImpl::~CommandNotificationFromMobileImpl() {
-}
+CommandNotificationFromMobileImpl::~CommandNotificationFromMobileImpl() {}
bool CommandNotificationFromMobileImpl::Init() {
return true;
@@ -54,8 +52,7 @@ bool CommandNotificationFromMobileImpl::CleanUp() {
return true;
}
-void CommandNotificationFromMobileImpl::Run() {
-}
+void CommandNotificationFromMobileImpl::Run() {}
void CommandNotificationFromMobileImpl::SendNotification() {
(*message_)[strings::params][strings::protocol_type] = mobile_protocol_type_;
@@ -66,7 +63,7 @@ void CommandNotificationFromMobileImpl::SendNotification() {
LOG4CXX_INFO(logger_, "SendNotification");
MessageHelper::PrintSmartObject(*message_);
- ApplicationManagerImpl::instance()->SendMessageToMobile(message_);
+ application_manager_.SendMessageToMobile(message_);
}
} // namespace commands