| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |