summaryrefslogtreecommitdiff
path: root/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/on_system_request_notification.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/on_system_request_notification.cc')
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/on_system_request_notification.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/on_system_request_notification.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/on_system_request_notification.cc
index 6d95febe71..e11eda165c 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/on_system_request_notification.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/on_system_request_notification.cc
@@ -121,16 +121,15 @@ void OnSystemRequestNotification::Run() {
params[strings::connection_key] = app->app_id();
-#ifdef EXTERNAL_PROPRIETARY_MODE
using namespace rpc::policy_table_interface_base;
const auto request_type =
static_cast<rpc::policy_table_interface_base::RequestType>(
(*message_)[strings::msg_params][strings::request_type].asUInt());
- if (RequestType::RT_PROPRIETARY == request_type) {
- policy_handler_.ptu_retry_handler().OnSystemRequestReceived();
+ if (helpers::Compare<RequestType, helpers::EQ, helpers::ONE>(
+ request_type, RequestType::RT_PROPRIETARY, RequestType::RT_HTTP)) {
+ policy_handler_.OnSystemRequestReceived();
}
-#endif
SendNotificationToMobile(message_);
}