OLD | NEW |
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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 installer->Register(cus, base::Closure()); | 467 installer->Register(cus, base::Closure()); |
468 } | 468 } |
469 | 469 |
470 void RegisterPrefsForSwReporter(PrefRegistrySimple* registry) { | 470 void RegisterPrefsForSwReporter(PrefRegistrySimple* registry) { |
471 registry->RegisterInt64Pref(prefs::kSwReporterLastTimeTriggered, 0); | 471 registry->RegisterInt64Pref(prefs::kSwReporterLastTimeTriggered, 0); |
472 registry->RegisterIntegerPref(prefs::kSwReporterLastExitCode, -1); | 472 registry->RegisterIntegerPref(prefs::kSwReporterLastExitCode, -1); |
473 } | 473 } |
474 | 474 |
475 void RegisterProfilePrefsForSwReporter( | 475 void RegisterProfilePrefsForSwReporter( |
476 user_prefs::PrefRegistrySyncable* registry) { | 476 user_prefs::PrefRegistrySyncable* registry) { |
477 registry->RegisterIntegerPref( | 477 registry->RegisterIntegerPref(prefs::kSwReporterPromptReason, -1); |
478 prefs::kSwReporterPromptReason, -1, | |
479 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
480 | 478 |
481 registry->RegisterStringPref( | 479 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); |
482 prefs::kSwReporterPromptVersion, "", | |
483 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
484 | 480 |
485 registry->RegisterStringPref( | 481 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); |
486 prefs::kSwReporterPromptSeed, "", | |
487 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
488 } | 482 } |
489 | 483 |
490 } // namespace component_updater | 484 } // namespace component_updater |
OLD | NEW |