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

Unified Diff: chrome/browser/component_updater/caps_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
« no previous file with comments | « chrome/app/chrome_main_delegate.cc ('k') | chrome/browser/component_updater/cld_component_installer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/caps_installer_win.cc
diff --git a/chrome/browser/component_updater/caps_installer_win.cc b/chrome/browser/component_updater/caps_installer_win.cc
index d2d36303fb697f576ca6095b0370d9423b15be7a..7027442a5fe876aba95ea039cf47ab250c227766 100644
--- a/chrome/browser/component_updater/caps_installer_win.cc
+++ b/chrome/browser/component_updater/caps_installer_win.cc
@@ -51,9 +51,6 @@ const uint8_t kSha256Hash[] = {0x12, 0xf6, 0xea, 0xea, 0x64, 0xac, 0xd5, 0xae,
const base::FilePath::CharType kCapsBinary[] =
FILE_PATH_LITERAL("chrome_crash_svc.exe");
-const base::FilePath::CharType kCapsDirectory[] =
- FILE_PATH_LITERAL("Caps");
-
// This function is called from a worker thread to launch crash service.
void LaunchService(const base::FilePath& exe_path) {
base::CommandLine service_cmdline(exe_path);
@@ -98,10 +95,8 @@ class CAPSInstallerTraits : public ComponentInstallerTraits {
}
// Directory is usually "%appdata%\Local\Chrome\User Data\Caps".
- base::FilePath GetBaseDirectory() const override {
- base::FilePath user_data;
- PathService::Get(chrome::DIR_USER_DATA, &user_data);
- return user_data.Append(kCapsDirectory);
+ base::FilePath GetRelativeInstallDir() const override {
+ return base::FilePath(FILE_PATH_LITERAL("Caps"));
}
void GetHash(std::vector<uint8_t>* hash) const override {
« no previous file with comments | « chrome/app/chrome_main_delegate.cc ('k') | chrome/browser/component_updater/cld_component_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698