diff options
author | Kozoriz <kozorizandriy@gmail.com> | 2016-02-29 10:18:10 +0200 |
---|---|---|
committer | Kozoriz <kozorizandriy@gmail.com> | 2016-03-04 10:11:18 +0200 |
commit | ccf13c773bca0b98c7dcdcf21f99e5d1766ade2d (patch) | |
tree | ecae5cb63967b7b070f154108ea7561d933a7b8a /src/components/application_manager/src/resumption/resumption_data_json.cc | |
parent | 312aa163afbc403380dab8ce0cd77747aeff057a (diff) | |
download | sdl_core-ccf13c773bca0b98c7dcdcf21f99e5d1766ade2d.tar.gz |
Remove CH, PH, HMI_MH singletones from ApplicationManager
Correctives after refactoring ConnectioinHandler,
ProtocolHandler, HMIMessageHandler
Related to : APPLINK-21440
Diffstat (limited to 'src/components/application_manager/src/resumption/resumption_data_json.cc')
-rw-r--r-- | src/components/application_manager/src/resumption/resumption_data_json.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/application_manager/src/resumption/resumption_data_json.cc b/src/components/application_manager/src/resumption/resumption_data_json.cc index 9888711d84..919f7c051c 100644 --- a/src/components/application_manager/src/resumption/resumption_data_json.cc +++ b/src/components/application_manager/src/resumption/resumption_data_json.cc @@ -60,15 +60,14 @@ void ResumptionDataJson::SaveApplication( const std::string hash = application->curHash(); const uint32_t grammar_id = application->get_grammar_id(); const uint32_t time_stamp = (uint32_t)time(NULL); - const std::string device_id = - MessageHelper::GetDeviceMacAddressForHandle(application->device()); + const std::string device_mac = application->mac_address(); const mobile_apis::HMILevel::eType hmi_level = application->hmi_level(); sync_primitives::AutoLock autolock(resumption_lock_); Json::Value tmp; - Json::Value& json_app = GetFromSavedOrAppend(policy_app_id, device_id); + Json::Value& json_app = GetFromSavedOrAppend(policy_app_id, device_mac); - json_app[strings::device_id] = device_id; + json_app[strings::device_id] = device_mac; json_app[strings::app_id] = policy_app_id; json_app[strings::grammar_id] = grammar_id; json_app[strings::connection_key] = application->app_id(); |