diff options
author | Kozoriz <kozorizandriy@gmail.com> | 2016-04-11 16:21:12 +0300 |
---|---|---|
committer | Kozoriz <kozorizandriy@gmail.com> | 2016-04-25 12:05:00 +0300 |
commit | 2c7dc612ce41461bebc3416917d2607f24002285 (patch) | |
tree | 3dfce6575c040c3469e17ec1eab07d02c3dee92f /src/components/application_manager/src/commands/mobile/delete_command_request.cc | |
parent | 8b1699d3829ad4e2384788652a2102f7cd8a8bff (diff) | |
download | sdl_core-2c7dc612ce41461bebc3416917d2607f24002285.tar.gz |
Mobile commands update after removing all singletones
Diffstat (limited to 'src/components/application_manager/src/commands/mobile/delete_command_request.cc')
-rw-r--r-- | src/components/application_manager/src/commands/mobile/delete_command_request.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/components/application_manager/src/commands/mobile/delete_command_request.cc b/src/components/application_manager/src/commands/mobile/delete_command_request.cc index 58fd06532a..baebbe26cd 100644 --- a/src/components/application_manager/src/commands/mobile/delete_command_request.cc +++ b/src/components/application_manager/src/commands/mobile/delete_command_request.cc @@ -32,8 +32,9 @@ */ #include "application_manager/commands/mobile/delete_command_request.h" -#include "application_manager/application_manager_impl.h" + #include "application_manager/application_impl.h" +#include "application_manager/message_helper.h" #include "interfaces/MOBILE_API.h" #include "interfaces/HMI_API.h" #include "utils/helpers.h" @@ -42,8 +43,8 @@ namespace application_manager { namespace commands { -DeleteCommandRequest::DeleteCommandRequest(const MessageSharedPtr& message) - : CommandRequestImpl(message), +DeleteCommandRequest::DeleteCommandRequest(const MessageSharedPtr& message, ApplicationManager& application_manager) + : CommandRequestImpl(message, application_manager), is_ui_send_(false), is_vr_send_(false), is_ui_received_(false), @@ -58,7 +59,7 @@ DeleteCommandRequest::~DeleteCommandRequest() { void DeleteCommandRequest::Run() { LOG4CXX_AUTO_TRACE(logger_); - ApplicationSharedPtr application = ApplicationManagerImpl::instance()-> + ApplicationSharedPtr application = application_manager_. application(connection_key()); if (!application) { @@ -146,7 +147,7 @@ void DeleteCommandRequest::on_event(const event_engine::Event& event) { } ApplicationSharedPtr application = - ApplicationManagerImpl::instance()->application(connection_key()); + application_manager_.application(connection_key()); if (!application) { LOG4CXX_ERROR(logger_, "Application is not registered"); |