Refactor the logic to retrieve the source url from config.xml 38/171538/1
authorsurya.kumar7 <surya.kumar7@samsung.com>
Mon, 5 Mar 2018 10:47:37 +0000 (16:17 +0530)
committersurya.kumar7 <surya.kumar7@samsung.com>
Mon, 5 Mar 2018 10:47:59 +0000 (16:17 +0530)
Change-Id: Ie5292bedc917ab53fabef8db7a2a0d2cee9f3fad

atom/browser/api/atom_api_pwrt.cc
tizen/common/application_data.h

index 766b8cb..e249288 100644 (file)
@@ -32,7 +32,8 @@ std::string PWRT::GetPath() {
   std::string appid = runtime_cmd->GetAppIdFromCommandLine("/usr/bin/electron");
   auto appdata_manager = common::ApplicationDataManager::GetInstance();
   common::ApplicationData* app_data = appdata_manager->GetApplicationData(appid);
-  std::string app_path = "file://" + app_data->application_path() + app_data->content_src();
+  // TODO: Use resource-manager's GetStartResource() for localized urls
+  std::string app_path = "file://" + app_data->application_path() + app_data->content_info()->src();
   return app_path;
 }
 
index eed0347..8f43cae 100644 (file)
@@ -70,7 +70,6 @@ class ApplicationData {
   const std::string application_path() const { return application_path_; }
   const std::string pkg_id() const;
   const std::string app_id() const { return app_id_; }
-  const std::string content_src() { return (content_info_.get())->src(); }
   ApplicationData::AppType app_type() { return app_type_; }
 
  private: