From cff1817e37f5a1a488fdd6dec8b08ffe017ce8c5 Mon Sep 17 00:00:00 2001 From: JackLivio Date: Fri, 4 Nov 2016 14:49:38 -0400 Subject: Remove Policy_lib_check_void() for activate app In the event policies are disabled, this policy lib check void would return before sdl has the opportunity to tell the hmi to activate the app. When this function returns because of policy lib check void, an app could never be activated and no warnings or errors are reported. This check of policies is not needed either since there are the appropriate checks in this function for if policies are enabled, and handles either setting appropriately. --- src/components/application_manager/src/policies/policy_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/application_manager/src/policies/policy_handler.cc b/src/components/application_manager/src/policies/policy_handler.cc index 23f5227667..2098373985 100644 --- a/src/components/application_manager/src/policies/policy_handler.cc +++ b/src/components/application_manager/src/policies/policy_handler.cc @@ -959,7 +959,7 @@ void PolicyHandler::OnIgnitionCycleOver() { void PolicyHandler::OnActivateApp(uint32_t connection_key, uint32_t correlation_id) { LOG4CXX_AUTO_TRACE(logger_); - POLICY_LIB_CHECK_VOID(); + ApplicationSharedPtr app = application_manager_.application(connection_key); if (!app.valid()) { LOG4CXX_WARN(logger_, "Activated App failed: no app found."); -- cgit v1.2.1