| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser_window_controller.h" | 5 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 6 | 6 |
| 7 #include <Carbon/Carbon.h> | 7 #include <Carbon/Carbon.h> |
| 8 | 8 |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 #include <numeric> | 10 #include <numeric> |
| (...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1389 | 1389 |
| 1390 - (BOOL)shouldShowAvatar { | 1390 - (BOOL)shouldShowAvatar { |
| 1391 if (![self hasTabStrip]) | 1391 if (![self hasTabStrip]) |
| 1392 return NO; | 1392 return NO; |
| 1393 | 1393 |
| 1394 if (browser_->profile()->IsOffTheRecord()) | 1394 if (browser_->profile()->IsOffTheRecord()) |
| 1395 return YES; | 1395 return YES; |
| 1396 | 1396 |
| 1397 if (ProfileManager::IsMultipleProfilesEnabled()) { | 1397 if (ProfileManager::IsMultipleProfilesEnabled()) { |
| 1398 // Show the profile avatar after the user has created more than one profile. | 1398 // Show the profile avatar after the user has created more than one profile. |
| 1399 ProfileInfoCache& cache = | 1399 ProfileInfoInterface& cache = |
| 1400 g_browser_process->profile_manager()->GetProfileInfoCache(); | 1400 g_browser_process->profile_manager()->GetProfileInfo(); |
| 1401 return cache.GetNumberOfProfiles() > 1; | 1401 return cache.GetNumberOfProfiles() > 1; |
| 1402 } | 1402 } |
| 1403 | 1403 |
| 1404 return NO; | 1404 return NO; |
| 1405 } | 1405 } |
| 1406 | 1406 |
| 1407 - (BOOL)isBookmarkBarVisible { | 1407 - (BOOL)isBookmarkBarVisible { |
| 1408 return [bookmarkBarController_ isVisible]; | 1408 return [bookmarkBarController_ isVisible]; |
| 1409 } | 1409 } |
| 1410 | 1410 |
| (...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2293 | 2293 |
| 2294 - (BOOL)supportsBookmarkBar { | 2294 - (BOOL)supportsBookmarkBar { |
| 2295 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR]; | 2295 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR]; |
| 2296 } | 2296 } |
| 2297 | 2297 |
| 2298 - (BOOL)isTabbedWindow { | 2298 - (BOOL)isTabbedWindow { |
| 2299 return browser_->is_type_tabbed(); | 2299 return browser_->is_type_tabbed(); |
| 2300 } | 2300 } |
| 2301 | 2301 |
| 2302 @end // @implementation BrowserWindowController(WindowType) | 2302 @end // @implementation BrowserWindowController(WindowType) |
| OLD | NEW |