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

Unified Diff: chrome/browser/component_updater/sw_reporter_installer_win.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/sw_reporter_installer_win.cc
diff --git a/chrome/browser/component_updater/sw_reporter_installer_win.cc b/chrome/browser/component_updater/sw_reporter_installer_win.cc
index d3ffde39f662ff9a5c04df137bd035de93bf4916..8137af903d489b0bccaa5366dd9eb4d0325682d2 100644
--- a/chrome/browser/component_updater/sw_reporter_installer_win.cc
+++ b/chrome/browser/component_updater/sw_reporter_installer_win.cc
@@ -132,7 +132,9 @@ class SwReporterInstallerTraits : public ComponentInstallerTraits {
base::WorkerPool::GetTaskRunner(true));
}
- base::FilePath GetBaseDirectory() const override { return install_dir(); }
+ base::FilePath GetRelativeInstallDir() const override {
+ return base::FilePath(FILE_PATH_LITERAL("SwReporter"));
+ }
void GetHash(std::vector<uint8_t>* hash) const override { GetPkHash(hash); }
@@ -140,14 +142,6 @@ class SwReporterInstallerTraits : public ComponentInstallerTraits {
std::string GetAp() const override { return std::string(); }
- static base::FilePath install_dir() {
- // The base directory on windows looks like:
- // <profile>\AppData\Local\Google\Chrome\User Data\SwReporter\.
- base::FilePath result;
- PathService::Get(DIR_SW_REPORTER, &result);
- return result;
- }
-
static std::string ID() {
update_client::CrxComponent component;
component.version = Version("0.0.0.0");

Powered by Google App Engine
This is Rietveld 408576698