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

Side by Side Diff: chrome/browser/signin/signin_promo.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/signin/signin_promo.h" 5 #include "chrome/browser/signin/signin_promo.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 } 245 }
246 return false; 246 return false;
247 } 247 }
248 248
249 void ForceWebBasedSigninFlowForTesting(bool force) { 249 void ForceWebBasedSigninFlowForTesting(bool force) {
250 g_force_web_based_signin_flow = force; 250 g_force_web_based_signin_flow = force;
251 } 251 }
252 252
253 void RegisterProfilePrefs( 253 void RegisterProfilePrefs(
254 user_prefs::PrefRegistrySyncable* registry) { 254 user_prefs::PrefRegistrySyncable* registry) {
255 registry->RegisterIntegerPref( 255 registry->RegisterIntegerPref(prefs::kSignInPromoStartupCount, 0);
256 prefs::kSignInPromoStartupCount, 256 registry->RegisterBooleanPref(prefs::kSignInPromoUserSkipped, false);
257 0, 257 registry->RegisterBooleanPref(prefs::kSignInPromoShowOnFirstRunAllowed, true);
258 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 258 registry->RegisterBooleanPref(prefs::kSignInPromoShowNTPBubble, false);
259 registry->RegisterBooleanPref(
260 prefs::kSignInPromoUserSkipped,
261 false,
262 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
263 registry->RegisterBooleanPref(
264 prefs::kSignInPromoShowOnFirstRunAllowed,
265 true,
266 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
267 registry->RegisterBooleanPref(
268 prefs::kSignInPromoShowNTPBubble,
269 false,
270 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
271 } 259 }
272 260
273 } // namespace signin 261 } // namespace signin
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_manager_factory.cc ('k') | chrome/browser/spellchecker/spellcheck_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698