| 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/profiles/profile_window.h" | 5 #include "chrome/browser/profiles/profile_window.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/prefs/pref_service.h" | |
| 13 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 15 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 16 #include "chrome/browser/about_flags.h" | 15 #include "chrome/browser/about_flags.h" |
| 17 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
| 18 #include "chrome/browser/lifetime/application_lifetime.h" | 17 #include "chrome/browser/lifetime/application_lifetime.h" |
| 19 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 20 #include "chrome/browser/profiles/profile_avatar_icon_util.h" | 19 #include "chrome/browser/profiles/profile_avatar_icon_util.h" |
| 21 #include "chrome/browser/profiles/profile_manager.h" | 20 #include "chrome/browser/profiles/profile_manager.h" |
| 22 #include "chrome/browser/signin/account_reconcilor_factory.h" | 21 #include "chrome/browser/signin/account_reconcilor_factory.h" |
| 23 #include "chrome/browser/signin/account_tracker_service_factory.h" | 22 #include "chrome/browser/signin/account_tracker_service_factory.h" |
| 24 #include "chrome/browser/signin/signin_manager_factory.h" | 23 #include "chrome/browser/signin/signin_manager_factory.h" |
| 25 #include "chrome/browser/signin/signin_ui_util.h" | 24 #include "chrome/browser/signin/signin_ui_util.h" |
| 26 #include "chrome/browser/sync/profile_sync_service_factory.h" | 25 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 27 #include "chrome/browser/ui/browser.h" | 26 #include "chrome/browser/ui/browser.h" |
| 28 #include "chrome/browser/ui/browser_dialogs.h" | 27 #include "chrome/browser/ui/browser_dialogs.h" |
| 29 #include "chrome/browser/ui/profile_chooser_constants.h" | 28 #include "chrome/browser/ui/profile_chooser_constants.h" |
| 30 #include "chrome/browser/ui/user_manager.h" | 29 #include "chrome/browser/ui/user_manager.h" |
| 31 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
| 32 #include "chrome/common/url_constants.h" | 31 #include "chrome/common/url_constants.h" |
| 33 #include "components/browser_sync/browser/profile_sync_service.h" | 32 #include "components/browser_sync/browser/profile_sync_service.h" |
| 34 #include "components/flags_ui/pref_service_flags_storage.h" | 33 #include "components/flags_ui/pref_service_flags_storage.h" |
| 34 #include "components/prefs/pref_service.h" |
| 35 #include "components/signin/core/browser/account_reconcilor.h" | 35 #include "components/signin/core/browser/account_reconcilor.h" |
| 36 #include "components/signin/core/browser/account_tracker_service.h" | 36 #include "components/signin/core/browser/account_tracker_service.h" |
| 37 #include "components/signin/core/browser/signin_manager.h" | 37 #include "components/signin/core/browser/signin_manager.h" |
| 38 #include "components/signin/core/common/profile_management_switches.h" | 38 #include "components/signin/core/common/profile_management_switches.h" |
| 39 #include "components/signin/core/common/signin_pref_names.h" | 39 #include "components/signin/core/common/signin_pref_names.h" |
| 40 #include "components/signin/core/common/signin_switches.h" | 40 #include "components/signin/core/common/signin_switches.h" |
| 41 #include "content/public/browser/browser_thread.h" | 41 #include "content/public/browser/browser_thread.h" |
| 42 #include "content/public/browser/user_metrics.h" | 42 #include "content/public/browser/user_metrics.h" |
| 43 | 43 |
| 44 #if defined(ENABLE_EXTENSIONS) | 44 #if defined(ENABLE_EXTENSIONS) |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 PrefService* local_state = g_browser_process->local_state(); | 559 PrefService* local_state = g_browser_process->local_state(); |
| 560 const bool dismissed = local_state->GetBoolean( | 560 const bool dismissed = local_state->GetBoolean( |
| 561 prefs::kProfileAvatarRightClickTutorialDismissed); | 561 prefs::kProfileAvatarRightClickTutorialDismissed); |
| 562 | 562 |
| 563 // Don't show the tutorial if it's already been dismissed or if right-clicking | 563 // Don't show the tutorial if it's already been dismissed or if right-clicking |
| 564 // wouldn't show any targets. | 564 // wouldn't show any targets. |
| 565 return !dismissed && HasProfileSwitchTargets(profile); | 565 return !dismissed && HasProfileSwitchTargets(profile); |
| 566 } | 566 } |
| 567 | 567 |
| 568 } // namespace profiles | 568 } // namespace profiles |
| OLD | NEW |