OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 #import <Carbon/Carbon.h> // kVK_Return. | 6 #import <Carbon/Carbon.h> // kVK_Return. |
7 | 7 |
8 #import "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h" | 8 #import "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h" |
9 | 9 |
10 #include "base/mac/bundle_locations.h" | 10 #include "base/mac/bundle_locations.h" |
11 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "chrome/app/chrome_command_ids.h" | 15 #include "chrome/app/chrome_command_ids.h" |
16 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
17 #include "chrome/browser/chrome_notification_types.h" | 17 #include "chrome/browser/chrome_notification_types.h" |
18 #include "chrome/browser/lifetime/application_lifetime.h" | 18 #include "chrome/browser/lifetime/application_lifetime.h" |
19 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 19 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
20 #include "chrome/browser/profiles/avatar_menu.h" | 20 #include "chrome/browser/profiles/avatar_menu.h" |
21 #include "chrome/browser/profiles/avatar_menu_observer.h" | 21 #include "chrome/browser/profiles/avatar_menu_observer.h" |
22 #include "chrome/browser/profiles/profile_avatar_icon_util.h" | 22 #include "chrome/browser/profiles/profile_avatar_icon_util.h" |
23 #include "chrome/browser/profiles/profile_info_cache.h" | 23 #include "chrome/browser/profiles/profile_info_cache.h" |
24 #include "chrome/browser/profiles/profile_manager.h" | 24 #include "chrome/browser/profiles/profile_manager.h" |
25 #include "chrome/browser/profiles/profile_metrics.h" | 25 #include "chrome/browser/profiles/profile_metrics.h" |
26 #include "chrome/browser/profiles/profile_window.h" | 26 #include "chrome/browser/profiles/profile_window.h" |
27 #include "chrome/browser/profiles/profiles_state.h" | 27 #include "chrome/browser/profiles/profiles_state.h" |
| 28 #include "chrome/browser/signin/local_auth.h" |
28 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 29 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
29 #include "chrome/browser/signin/signin_header_helper.h" | 30 #include "chrome/browser/signin/signin_header_helper.h" |
30 #include "chrome/browser/signin/signin_manager_factory.h" | 31 #include "chrome/browser/signin/signin_manager_factory.h" |
31 #include "chrome/browser/signin/signin_promo.h" | 32 #include "chrome/browser/signin/signin_promo.h" |
32 #include "chrome/browser/signin/signin_ui_util.h" | 33 #include "chrome/browser/signin/signin_ui_util.h" |
33 #include "chrome/browser/ui/browser.h" | 34 #include "chrome/browser/ui/browser.h" |
34 #include "chrome/browser/ui/browser_commands.h" | 35 #include "chrome/browser/ui/browser_commands.h" |
35 #include "chrome/browser/ui/browser_window.h" | 36 #include "chrome/browser/ui/browser_window.h" |
36 #include "chrome/browser/ui/chrome_pages.h" | 37 #include "chrome/browser/ui/chrome_pages.h" |
37 #include "chrome/browser/ui/chrome_style.h" | 38 #include "chrome/browser/ui/chrome_style.h" |
(...skipping 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2269 } | 2270 } |
2270 | 2271 |
2271 - (bool)shouldShowGoIncognito { | 2272 - (bool)shouldShowGoIncognito { |
2272 bool incognitoAvailable = | 2273 bool incognitoAvailable = |
2273 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) != | 2274 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) != |
2274 IncognitoModePrefs::DISABLED; | 2275 IncognitoModePrefs::DISABLED; |
2275 return incognitoAvailable && !browser_->profile()->IsGuestSession(); | 2276 return incognitoAvailable && !browser_->profile()->IsGuestSession(); |
2276 } | 2277 } |
2277 | 2278 |
2278 @end | 2279 @end |
OLD | NEW |