| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/app_controller_mac.h" | 5 #import "app_controller_mac.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #import "base/message_loop.h" |
| 8 #include "chrome/app/chrome_dll_resource.h" | 8 #import "chrome/app/chrome_dll_resource.h" |
| 9 #include "chrome/browser/browser.h" | 9 #import "chrome/browser/browser.h" |
| 10 #include "chrome/browser/browser_list.h" | 10 #import "chrome/browser/browser_list.h" |
| 11 #include "chrome/browser/browser_shutdown.h" | 11 #include "chrome/browser/browser_shutdown.h" |
| 12 #import "chrome/browser/cocoa/bookmark_menu_bridge.h" | 12 #import "chrome/browser/cocoa/bookmark_menu_bridge.h" |
| 13 #include "chrome/browser/command_updater.h" | 13 #import "chrome/browser/command_updater.h" |
| 14 #include "chrome/browser/profile_manager.h" | 14 #import "chrome/browser/profile_manager.h" |
| 15 #include "chrome/common/temp_scaffolding_stubs.h" | 15 #import "chrome/common/temp_scaffolding_stubs.h" |
| 16 | 16 |
| 17 @interface AppController(PRIVATE) | 17 @interface AppController(PRIVATE) |
| 18 - (void)initMenuState; | 18 - (void)initMenuState; |
| 19 @end | 19 @end |
| 20 | 20 |
| 21 @implementation AppController | 21 @implementation AppController |
| 22 | 22 |
| 23 - (void)awakeFromNib { | 23 - (void)awakeFromNib { |
| 24 // Set up the command updater for when there are no windows open | 24 // Set up the command updater for when there are no windows open |
| 25 [self initMenuState]; | 25 [self initMenuState]; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // TODO(jrg): DCHECK() to confirm that. | 116 // TODO(jrg): DCHECK() to confirm that. |
| 117 // TODO(jrg): Find a better way to get the "default" profile. | 117 // TODO(jrg): Find a better way to get the "default" profile. |
| 118 if (g_browser_process->profile_manager()) | 118 if (g_browser_process->profile_manager()) |
| 119 return *g_browser_process->profile_manager()->begin(); | 119 return *g_browser_process->profile_manager()->begin(); |
| 120 return NULL; | 120 return NULL; |
| 121 | 121 |
| 122 } | 122 } |
| 123 | 123 |
| 124 | 124 |
| 125 @end | 125 @end |
| OLD | NEW |