summaryrefslogtreecommitdiff
path: root/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/button_press_request.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/button_press_request.cc')
-rw-r--r--src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/button_press_request.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/button_press_request.cc b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/button_press_request.cc
index 9bf7977bdf..297c4b70bb 100644
--- a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/button_press_request.cc
+++ b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/button_press_request.cc
@@ -125,7 +125,7 @@ AcquireResult::eType ButtonPressRequest::AcquireResource(
SDL_LOG_AUTO_TRACE();
const std::string module_type = ModuleType();
app_mngr::ApplicationSharedPtr app =
- application_manager_.application(CommandRequestImpl::connection_key());
+ application_manager_.application(RequestFromMobileImpl::connection_key());
return resource_allocation_manager_.AcquireResource(
module_type, ModuleId(), app->app_id());
@@ -141,8 +141,7 @@ void ButtonPressRequest::SetResourceState(const std::string& module_type,
const ResourceState::eType state) {
SDL_LOG_AUTO_TRACE();
app_mngr::ApplicationSharedPtr app =
- application_manager_.application(CommandRequestImpl::connection_key());
-
+ application_manager_.application(RequestFromMobileImpl::connection_key());
resource_allocation_manager_.SetResourceState(
module_type, ModuleId(), app->app_id(), state);
}