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

Side by Side Diff: chrome/browser/component_updater/sw_reporter_installer_win.cc

Issue 1872053002: Implement an API to allow passing an "ap" parameter to component updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/component_updater/sw_reporter_installer_win.h" 5 #include "chrome/browser/component_updater/sw_reporter_installer_win.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 version, base::ThreadTaskRunnerHandle::Get(), 130 version, base::ThreadTaskRunnerHandle::Get(),
131 base::WorkerPool::GetTaskRunner(true)); 131 base::WorkerPool::GetTaskRunner(true));
132 } 132 }
133 133
134 base::FilePath GetBaseDirectory() const override { return install_dir(); } 134 base::FilePath GetBaseDirectory() const override { return install_dir(); }
135 135
136 void GetHash(std::vector<uint8_t>* hash) const override { GetPkHash(hash); } 136 void GetHash(std::vector<uint8_t>* hash) const override { GetPkHash(hash); }
137 137
138 std::string GetName() const override { return "Software Reporter Tool"; } 138 std::string GetName() const override { return "Software Reporter Tool"; }
139 139
140 std::string GetAp() const override { return std::string(); }
141
140 static base::FilePath install_dir() { 142 static base::FilePath install_dir() {
141 // The base directory on windows looks like: 143 // The base directory on windows looks like:
142 // <profile>\AppData\Local\Google\Chrome\User Data\SwReporter\. 144 // <profile>\AppData\Local\Google\Chrome\User Data\SwReporter\.
143 base::FilePath result; 145 base::FilePath result;
144 PathService::Get(DIR_SW_REPORTER, &result); 146 PathService::Get(DIR_SW_REPORTER, &result);
145 return result; 147 return result;
146 } 148 }
147 149
148 static std::string ID() { 150 static std::string ID() {
149 update_client::CrxComponent component; 151 update_client::CrxComponent component;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 } 254 }
253 255
254 void RegisterProfilePrefsForSwReporter( 256 void RegisterProfilePrefsForSwReporter(
255 user_prefs::PrefRegistrySyncable* registry) { 257 user_prefs::PrefRegistrySyncable* registry) {
256 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); 258 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, "");
257 259
258 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); 260 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, "");
259 } 261 }
260 262
261 } // namespace component_updater 263 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698