OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/profile_menu_controller.h" | 5 #import "chrome/browser/ui/cocoa/profiles/profile_menu_controller.h" |
6 | 6 |
7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/profiles/avatar_menu.h" | 10 #include "chrome/browser/profiles/avatar_menu.h" |
11 #include "chrome/browser/profiles/avatar_menu_observer.h" | 11 #include "chrome/browser/profiles/avatar_menu_observer.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/profiles/profile_info_cache.h" | 13 #include "chrome/browser/profiles/profile_info_cache.h" |
14 #include "chrome/browser/profiles/profile_info_interface.h" | 14 #include "chrome/browser/profiles/profile_info_interface.h" |
15 #include "chrome/browser/profiles/profile_info_util.h" | 15 #include "chrome/browser/profiles/profile_info_util.h" |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 } | 249 } |
250 | 250 |
251 - (NSMenuItem*)createItemWithTitle:(NSString*)title action:(SEL)sel { | 251 - (NSMenuItem*)createItemWithTitle:(NSString*)title action:(SEL)sel { |
252 base::scoped_nsobject<NSMenuItem> item( | 252 base::scoped_nsobject<NSMenuItem> item( |
253 [[NSMenuItem alloc] initWithTitle:title action:sel keyEquivalent:@""]); | 253 [[NSMenuItem alloc] initWithTitle:title action:sel keyEquivalent:@""]); |
254 [item setTarget:self]; | 254 [item setTarget:self]; |
255 return [item.release() autorelease]; | 255 return [item.release() autorelease]; |
256 } | 256 } |
257 | 257 |
258 @end | 258 @end |
OLD | NEW |