| 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 <limits.h> | 7 #include <limits.h> |
| 8 | 8 |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 15 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h" | 15 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h" |
| 16 #include "chrome/browser/first_run/first_run.h" | 16 #include "chrome/browser/first_run/first_run.h" |
| 17 #include "chrome/browser/google/google_brand.h" | 17 #include "chrome/browser/google/google_brand.h" |
| 18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/browser/profiles/profile_manager.h" | 19 #include "chrome/browser/profiles/profile_manager.h" |
| 20 #include "chrome/browser/signin/account_tracker_service_factory.h" | 20 #include "chrome/browser/signin/account_tracker_service_factory.h" |
| 21 #include "chrome/browser/signin/signin_error_controller_factory.h" | 21 #include "chrome/browser/signin/signin_error_controller_factory.h" |
| 22 #include "chrome/browser/signin/signin_manager_factory.h" | 22 #include "chrome/browser/signin/signin_manager_factory.h" |
| 23 #include "chrome/browser/signin/signin_promo_util.h" | 23 #include "chrome/browser/signin/signin_promo_util.h" |
| 24 #include "chrome/browser/ui/webui/options/core_options_handler.h" | |
| 25 #include "chrome/browser/ui/webui/theme_source.h" | 24 #include "chrome/browser/ui/webui/theme_source.h" |
| 26 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
| 27 #include "chrome/common/url_constants.h" | 26 #include "chrome/common/url_constants.h" |
| 28 #include "components/google/core/browser/google_util.h" | 27 #include "components/google/core/browser/google_util.h" |
| 29 #include "components/pref_registry/pref_registry_syncable.h" | 28 #include "components/pref_registry/pref_registry_syncable.h" |
| 30 #include "components/prefs/pref_service.h" | 29 #include "components/prefs/pref_service.h" |
| 31 #include "components/signin/core/browser/account_tracker_service.h" | 30 #include "components/signin/core/browser/account_tracker_service.h" |
| 32 #include "components/signin/core/browser/signin_manager.h" | 31 #include "components/signin/core/browser/signin_manager.h" |
| 33 #include "components/signin/core/common/profile_management_switches.h" | 32 #include "components/signin/core/common/profile_management_switches.h" |
| 34 #include "content/public/browser/url_data_source.h" | 33 #include "content/public/browser/url_data_source.h" |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 327 |
| 329 void RegisterProfilePrefs( | 328 void RegisterProfilePrefs( |
| 330 user_prefs::PrefRegistrySyncable* registry) { | 329 user_prefs::PrefRegistrySyncable* registry) { |
| 331 registry->RegisterIntegerPref(prefs::kSignInPromoStartupCount, 0); | 330 registry->RegisterIntegerPref(prefs::kSignInPromoStartupCount, 0); |
| 332 registry->RegisterBooleanPref(prefs::kSignInPromoUserSkipped, false); | 331 registry->RegisterBooleanPref(prefs::kSignInPromoUserSkipped, false); |
| 333 registry->RegisterBooleanPref(prefs::kSignInPromoShowOnFirstRunAllowed, true); | 332 registry->RegisterBooleanPref(prefs::kSignInPromoShowOnFirstRunAllowed, true); |
| 334 registry->RegisterBooleanPref(prefs::kSignInPromoShowNTPBubble, false); | 333 registry->RegisterBooleanPref(prefs::kSignInPromoShowNTPBubble, false); |
| 335 } | 334 } |
| 336 | 335 |
| 337 } // namespace signin | 336 } // namespace signin |
| OLD | NEW |