| 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 "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h" |
| 6 |
| 7 #import <Carbon/Carbon.h> // kVK_Return. |
| 5 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 6 #import <Carbon/Carbon.h> // kVK_Return. | |
| 7 | |
| 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" |
| (...skipping 2296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2315 } | 2315 } |
| 2316 | 2316 |
| 2317 - (bool)shouldShowGoIncognito { | 2317 - (bool)shouldShowGoIncognito { |
| 2318 bool incognitoAvailable = | 2318 bool incognitoAvailable = |
| 2319 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) != | 2319 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) != |
| 2320 IncognitoModePrefs::DISABLED; | 2320 IncognitoModePrefs::DISABLED; |
| 2321 return incognitoAvailable && !browser_->profile()->IsGuestSession(); | 2321 return incognitoAvailable && !browser_->profile()->IsGuestSession(); |
| 2322 } | 2322 } |
| 2323 | 2323 |
| 2324 @end | 2324 @end |
| OLD | NEW |