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

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: Always clean state on test setup 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/safe_browsing/srt_client_info_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 // |cus| will take ownership of |installer| during installer->Register(cus). 410 // |cus| will take ownership of |installer| during installer->Register(cus).
411 DefaultComponentInstaller* installer = 411 DefaultComponentInstaller* installer =
412 new DefaultComponentInstaller(std::move(traits)); 412 new DefaultComponentInstaller(std::move(traits));
413 installer->Register(cus, base::Closure()); 413 installer->Register(cus, base::Closure());
414 } 414 }
415 415
416 void RegisterPrefsForSwReporter(PrefRegistrySimple* registry) { 416 void RegisterPrefsForSwReporter(PrefRegistrySimple* registry) {
417 registry->RegisterInt64Pref(prefs::kSwReporterLastTimeTriggered, 0); 417 registry->RegisterInt64Pref(prefs::kSwReporterLastTimeTriggered, 0);
418 registry->RegisterIntegerPref(prefs::kSwReporterLastExitCode, -1); 418 registry->RegisterIntegerPref(prefs::kSwReporterLastExitCode, -1);
419 registry->RegisterBooleanPref(prefs::kSwReporterPendingPrompt, false); 419 registry->RegisterBooleanPref(prefs::kSwReporterPendingPrompt, false);
420 registry->RegisterInt64Pref(prefs::kSwReporterLastTimeSentReport, 0);
420 } 421 }
421 422
422 void RegisterProfilePrefsForSwReporter( 423 void RegisterProfilePrefsForSwReporter(
423 user_prefs::PrefRegistrySyncable* registry) { 424 user_prefs::PrefRegistrySyncable* registry) {
424 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); 425 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, "");
425 426
426 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); 427 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, "");
427 } 428 }
428 429
429 } // namespace component_updater 430 } // namespace component_updater
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/safe_browsing/srt_client_info_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698