Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1619)

Unified Diff: chrome/browser/component_updater/supervised_user_whitelist_installer.cc

Issue 1937683002: Implement support in DefaultComponentInstaller for picking up bundled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments through #35 Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/component_updater/supervised_user_whitelist_installer.cc
diff --git a/chrome/browser/component_updater/supervised_user_whitelist_installer.cc b/chrome/browser/component_updater/supervised_user_whitelist_installer.cc
index 1636411f545325c79cdce0668eadfbeb115109a2..ad64c5573e67a0ecdae5fd2c74cf9bfddef732d4 100644
--- a/chrome/browser/component_updater/supervised_user_whitelist_installer.cc
+++ b/chrome/browser/component_updater/supervised_user_whitelist_installer.cc
@@ -257,7 +257,7 @@ class SupervisedUserWhitelistComponentInstallerTraits
void ComponentReady(const base::Version& version,
const base::FilePath& install_dir,
std::unique_ptr<base::DictionaryValue> manifest) override;
- base::FilePath GetBaseDirectory() const override;
+ base::FilePath GetRelativeInstallDir() const override;
void GetHash(std::vector<uint8_t>* hash) const override;
std::string GetName() const override;
std::string GetAp() const override;
@@ -306,10 +306,9 @@ void SupervisedUserWhitelistComponentInstallerTraits::ComponentReady(
}
base::FilePath
-SupervisedUserWhitelistComponentInstallerTraits::GetBaseDirectory() const {
- base::FilePath whitelist_directory;
- PathService::Get(DIR_SUPERVISED_USER_WHITELISTS, &whitelist_directory);
- return whitelist_directory.AppendASCII(crx_id_);
+SupervisedUserWhitelistComponentInstallerTraits::GetRelativeInstallDir() const {
+ return base::FilePath(component_updater::kSupervisedUserWhitelistDirName)
+ .AppendASCII(crx_id_);
}
void SupervisedUserWhitelistComponentInstallerTraits::GetHash(

Powered by Google App Engine
This is Rietveld 408576698