summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/commands/mobile/on_vehicle_data_notification.cc
diff options
context:
space:
mode:
authorKozoriz <kozorizandriy@gmail.com>2016-04-11 16:21:12 +0300
committerKozoriz <kozorizandriy@gmail.com>2016-04-25 12:05:00 +0300
commit2c7dc612ce41461bebc3416917d2607f24002285 (patch)
tree3dfce6575c040c3469e17ec1eab07d02c3dee92f /src/components/application_manager/src/commands/mobile/on_vehicle_data_notification.cc
parent8b1699d3829ad4e2384788652a2102f7cd8a8bff (diff)
downloadsdl_core-2c7dc612ce41461bebc3416917d2607f24002285.tar.gz
Mobile commands update after removing all singletones
Diffstat (limited to 'src/components/application_manager/src/commands/mobile/on_vehicle_data_notification.cc')
-rw-r--r--src/components/application_manager/src/commands/mobile/on_vehicle_data_notification.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/application_manager/src/commands/mobile/on_vehicle_data_notification.cc b/src/components/application_manager/src/commands/mobile/on_vehicle_data_notification.cc
index 9c60b90be5..ec74c1c621 100644
--- a/src/components/application_manager/src/commands/mobile/on_vehicle_data_notification.cc
+++ b/src/components/application_manager/src/commands/mobile/on_vehicle_data_notification.cc
@@ -32,7 +32,7 @@
*/
#include "application_manager/commands/mobile/on_vehicle_data_notification.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"
@@ -42,8 +42,8 @@ namespace application_manager {
namespace commands {
OnVehicleDataNotification::OnVehicleDataNotification(
- const MessageSharedPtr& message)
- : CommandNotificationImpl(message) {
+ const MessageSharedPtr& message, ApplicationManager& application_manager)
+ : CommandNotificationImpl(message, application_manager) {
}
OnVehicleDataNotification::~OnVehicleDataNotification() {
@@ -63,7 +63,7 @@ void OnVehicleDataNotification::Run() {
for (; vehicle_data.end() != it; ++it) {
if (true == (*message_)[strings::msg_params].keyExists(it->first)) {
const std::vector<ApplicationSharedPtr>& applications =
- ApplicationManagerImpl::instance()->IviInfoUpdated(it->second,
+ application_manager_.IviInfoUpdated(it->second,
(*message_)[strings::msg_params][it->first].asInt());
std::vector<ApplicationSharedPtr>::const_iterator app_it =