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

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

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 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 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/browser/custom_handlers/protocol_handler_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698