[WRTjs][VD] Remove making absolute path for widget.license 91/292691/2
authorDongHyun Song <dh81.song@samsung.com>
Thu, 11 May 2023 08:52:58 +0000 (17:52 +0900)
committerBot Blink <blinkbot@samsung.com>
Fri, 12 May 2023 07:34:13 +0000 (07:34 +0000)
AppicationData::application_path() is already asolute path, so
this is unncessary.
Additionally, for the secured USB installation feature, this
res/wgt path can be a symlink, so making absolute path is
unnecessary either.

Change-Id: I9acc530891e9ef908e6e5e25eba2e5c27c2573a6
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt/src/browser/tv/encrypted_file_handler.cc

index b5f5f4e1dec1e22492842ab25b96898216803e1a..1a1619b28f86ee651ce3afe18b5e0309ce6abb76 100644 (file)
@@ -47,8 +47,7 @@ EncryptedFileHandler::DataBuffer::DataBuffer(
 EncryptedFileHandler::EncryptedFileHandler()
     : license_handle_(0) {
   auto& app_data = ApplicationData::GetInstance();
-  wgt_path_ = base::MakeAbsoluteFilePath(
-      base::FilePath(app_data.application_path()));
+  wgt_path_ = base::FilePath(app_data.application_path());
   res_path_ = wgt_path_.DirName();
   app_id_ = app_data.app_id();
   LoadLicense();