namespace wrt {
Mounter::~Mounter() {
+ if (!base::PathExists(base::FilePath(mount_path_))) {
+ LOG(ERROR) << "Mount point does not exist: [" << mount_path_ << "]";
+ return;
+ }
PrivilegedService::GetInstance().Umount(mount_path_);
}
}
bool PrivilegedService::Umount(const std::string& mount_path) {
- if (!PS_Umount)
+ if (!PS_Umount) {
+ LOG(ERROR) << "PS_Umount not ready, that " << mount_path;
return false;
+ }
if (mount_path.empty()) {
LOG(INFO) << "Mount point is empty";
return false;
}
- if (!base::PathExists(base::FilePath(mount_path))) {
- LOG(ERROR) << "Mount point does not exist: [" << mount_path << "]";
- return false;
- }
-
LOG(INFO) << "PS_Umount : " << mount_path;
auto result = 0;
auto ret_value = PS_Umount(mount_path.c_str(), mount_path.size(), 0, &result);
#include "net/ssl/ssl_cert_request_info.h"
#include "net/ssl/ssl_platform_key_nss.h"
#include "sandbox/linux/services/credentials.h"
+#include "shell/browser/browser.h"
#include "tizen_src/chromium_impl/content/common/paths_efl.h"
#if !defined(WRT_JS_BRINGUP)
#include "tizen_src/chromium_impl/content/public/browser/certificates_utils.h"
if (app_status == AUL_R_ERROR || app_status == AUL_R_EINVAL)
dead_mount_path.push_back(mount_path);
+ LOG(INFO) << main_app_id << "is running(" << app_status << "), so skip";
pkgmgrinfo_pkginfo_destroy_pkginfo(pkg_info);
}
}
}
void NativeWebRuntimeDelegateTV::HandleLowMemory() {
-#if !defined(WRT_JS_BRINGUP)
if (electron::Browser::Get()->is_quitting()) {
LOG(ERROR) << "app is quiting, just return";
return;
NativeWebRuntime::GetInstance().RequestQuit();
}
}
-#endif
}
base::FilePath NativeWebRuntimeDelegateTV::GetTmgFilePath() {