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/prefs/pref_service.h" | |
10 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
12 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
13 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
14 #include "build/build_config.h" | 13 #include "build/build_config.h" |
15 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
16 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h" | 15 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h" |
17 #include "chrome/browser/first_run/first_run.h" | 16 #include "chrome/browser/first_run/first_run.h" |
18 #include "chrome/browser/google/google_brand.h" | 17 #include "chrome/browser/google/google_brand.h" |
19 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/browser/profiles/profile_info_cache.h" | 19 #include "chrome/browser/profiles/profile_info_cache.h" |
21 #include "chrome/browser/profiles/profile_manager.h" | 20 #include "chrome/browser/profiles/profile_manager.h" |
22 #include "chrome/browser/signin/account_tracker_service_factory.h" | 21 #include "chrome/browser/signin/account_tracker_service_factory.h" |
23 #include "chrome/browser/signin/signin_error_controller_factory.h" | 22 #include "chrome/browser/signin/signin_error_controller_factory.h" |
24 #include "chrome/browser/signin/signin_manager_factory.h" | 23 #include "chrome/browser/signin/signin_manager_factory.h" |
25 #include "chrome/browser/ui/webui/options/core_options_handler.h" | 24 #include "chrome/browser/ui/webui/options/core_options_handler.h" |
26 #include "chrome/browser/ui/webui/theme_source.h" | 25 #include "chrome/browser/ui/webui/theme_source.h" |
27 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
28 #include "chrome/common/url_constants.h" | 27 #include "chrome/common/url_constants.h" |
29 #include "components/google/core/browser/google_util.h" | 28 #include "components/google/core/browser/google_util.h" |
30 #include "components/pref_registry/pref_registry_syncable.h" | 29 #include "components/pref_registry/pref_registry_syncable.h" |
| 30 #include "components/prefs/pref_service.h" |
31 #include "components/signin/core/browser/account_tracker_service.h" | 31 #include "components/signin/core/browser/account_tracker_service.h" |
32 #include "components/signin/core/browser/signin_manager.h" | 32 #include "components/signin/core/browser/signin_manager.h" |
33 #include "components/signin/core/common/profile_management_switches.h" | 33 #include "components/signin/core/common/profile_management_switches.h" |
34 #include "content/public/browser/url_data_source.h" | 34 #include "content/public/browser/url_data_source.h" |
35 #include "content/public/browser/web_contents.h" | 35 #include "content/public/browser/web_contents.h" |
36 #include "content/public/browser/web_ui.h" | 36 #include "content/public/browser/web_ui.h" |
37 #include "content/public/browser/web_ui_data_source.h" | 37 #include "content/public/browser/web_ui_data_source.h" |
38 #include "google_apis/gaia/gaia_urls.h" | 38 #include "google_apis/gaia/gaia_urls.h" |
39 #include "net/base/escape.h" | 39 #include "net/base/escape.h" |
40 #include "net/base/network_change_notifier.h" | 40 #include "net/base/network_change_notifier.h" |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 352 |
353 void RegisterProfilePrefs( | 353 void RegisterProfilePrefs( |
354 user_prefs::PrefRegistrySyncable* registry) { | 354 user_prefs::PrefRegistrySyncable* registry) { |
355 registry->RegisterIntegerPref(prefs::kSignInPromoStartupCount, 0); | 355 registry->RegisterIntegerPref(prefs::kSignInPromoStartupCount, 0); |
356 registry->RegisterBooleanPref(prefs::kSignInPromoUserSkipped, false); | 356 registry->RegisterBooleanPref(prefs::kSignInPromoUserSkipped, false); |
357 registry->RegisterBooleanPref(prefs::kSignInPromoShowOnFirstRunAllowed, true); | 357 registry->RegisterBooleanPref(prefs::kSignInPromoShowOnFirstRunAllowed, true); |
358 registry->RegisterBooleanPref(prefs::kSignInPromoShowNTPBubble, false); | 358 registry->RegisterBooleanPref(prefs::kSignInPromoShowNTPBubble, false); |
359 } | 359 } |
360 | 360 |
361 } // namespace signin | 361 } // namespace signin |
OLD | NEW |