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

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

Issue 2286743004: Sends switches to the Software Reporter to enable matching data collection. (Closed)
Patch Set: Created 4 years, 3 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 <memory> 10 #include <memory>
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // |cus| will take ownership of |installer| during installer->Register(cus). 260 // |cus| will take ownership of |installer| during installer->Register(cus).
261 DefaultComponentInstaller* installer = 261 DefaultComponentInstaller* installer =
262 new DefaultComponentInstaller(std::move(traits)); 262 new DefaultComponentInstaller(std::move(traits));
263 installer->Register(cus, base::Closure()); 263 installer->Register(cus, base::Closure());
264 } 264 }
265 265
266 void RegisterPrefsForSwReporter(PrefRegistrySimple* registry) { 266 void RegisterPrefsForSwReporter(PrefRegistrySimple* registry) {
267 registry->RegisterInt64Pref(prefs::kSwReporterLastTimeTriggered, 0); 267 registry->RegisterInt64Pref(prefs::kSwReporterLastTimeTriggered, 0);
268 registry->RegisterIntegerPref(prefs::kSwReporterLastExitCode, -1); 268 registry->RegisterIntegerPref(prefs::kSwReporterLastExitCode, -1);
269 registry->RegisterBooleanPref(prefs::kSwReporterPendingPrompt, false); 269 registry->RegisterBooleanPref(prefs::kSwReporterPendingPrompt, false);
270 registry->RegisterInt64Pref(prefs::kSwReporterLastTimeSentReport, 0);
270 } 271 }
271 272
272 void RegisterProfilePrefsForSwReporter( 273 void RegisterProfilePrefsForSwReporter(
273 user_prefs::PrefRegistrySyncable* registry) { 274 user_prefs::PrefRegistrySyncable* registry) {
274 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); 275 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, "");
275 276
276 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); 277 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, "");
277 } 278 }
278 279
279 } // namespace component_updater 280 } // namespace component_updater
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/srt_client_info_win.h » ('j') | chrome/browser/safe_browsing/srt_client_info_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698