diff --git a/services/bundlemgr/include/sandbox_app/bundle_sandbox_installer.h b/services/bundlemgr/include/sandbox_app/bundle_sandbox_installer.h index 74b186f00c5a2b67dc2619ef13e564c2e2ee98f3..cfd470e707d0298bb189919d6cccb6fbacd0bc24 100644 --- a/services/bundlemgr/include/sandbox_app/bundle_sandbox_installer.h +++ b/services/bundlemgr/include/sandbox_app/bundle_sandbox_installer.h @@ -56,7 +56,7 @@ public: private: ErrCode CreateSandboxDataDir(InnerBundleInfo &info, const int32_t &uid, const int32_t &appIndex) const; void SandboxAppRollBack(InnerBundleInfo &info, const int32_t &userId); - bool GetInnerBundleInfo(InnerBundleInfo &info, bool &isAppExist); + bool FetchInnerBundleInfo(InnerBundleInfo &info, bool &isAppExist); ErrCode GetDataMgr(); ErrCode GetSandboxDataMgr(); diff --git a/services/bundlemgr/src/sandbox_app/bundle_sandbox_installer.cpp b/services/bundlemgr/src/sandbox_app/bundle_sandbox_installer.cpp index 2021302c3b677122ffdd80a82695a0feb210555d..1201fb543bbfc103edff7d279971da4e823f3548 100644 --- a/services/bundlemgr/src/sandbox_app/bundle_sandbox_installer.cpp +++ b/services/bundlemgr/src/sandbox_app/bundle_sandbox_installer.cpp @@ -59,7 +59,7 @@ ErrCode BundleSandboxInstaller::InstallSandboxApp(const std::string &bundleName, // 1. check whether original application installed or not InnerBundleInfo info; bool isExist = false; - if (!GetInnerBundleInfo(info, isExist) || !isExist) { + if (!FetchInnerBundleInfo(info, isExist) || !isExist) { APP_LOGE("the bundle is not installed"); return ERR_APPEXECFWK_SANDBOX_INSTALL_APP_NOT_EXISTED; } @@ -338,13 +338,13 @@ ErrCode BundleSandboxInstaller::UninstallAllSandboxApps(const std::string &bundl return ERR_OK; } -bool BundleSandboxInstaller::GetInnerBundleInfo(InnerBundleInfo &info, bool &isAppExist) +bool BundleSandboxInstaller::FetchInnerBundleInfo(InnerBundleInfo &info, bool &isAppExist) { if (GetDataMgr() != ERR_OK) { APP_LOGE("Get dataMgr shared_ptr failed"); return false; } - isAppExist = dataMgr_->GetInnerBundleInfo(bundleName_, info); + isAppExist = dataMgr_->FetchInnerBundleInfo(bundleName_, info); return true; }