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