| 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 #include "chrome/browser/chrome_browser_main_mac.h" | 5 #include "chrome/browser/chrome_browser_main_mac.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/debugger.h" | 10 #include "base/debug/debugger.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // Make sure the app controller has been created. | 173 // Make sure the app controller has been created. |
| 174 DCHECK([NSApp delegate]); | 174 DCHECK([NSApp delegate]); |
| 175 | 175 |
| 176 // Prevent Cocoa from turning command-line arguments into | 176 // Prevent Cocoa from turning command-line arguments into |
| 177 // |-application:openFiles:|, since we already handle them directly. | 177 // |-application:openFiles:|, since we already handle them directly. |
| 178 [[NSUserDefaults standardUserDefaults] | 178 [[NSUserDefaults standardUserDefaults] |
| 179 setObject:@"NO" forKey:@"NSTreatUnknownArgumentsAsOpen"]; | 179 setObject:@"NO" forKey:@"NSTreatUnknownArgumentsAsOpen"]; |
| 180 } | 180 } |
| 181 | 181 |
| 182 void ChromeBrowserMainPartsMac::PreProfileInit() { | 182 void ChromeBrowserMainPartsMac::PreProfileInit() { |
| 183 removable_device_notifications_mac_.reset( | 183 removable_device_notifications_mac_ = |
| 184 new chrome::RemovableDeviceNotificationsMac()); | 184 new chrome::RemovableDeviceNotificationsMac(); |
| 185 ChromeBrowserMainPartsPosix::PreProfileInit(); | 185 ChromeBrowserMainPartsPosix::PreProfileInit(); |
| 186 } | 186 } |
| 187 | 187 |
| 188 void ChromeBrowserMainPartsMac::DidEndMainMessageLoop() { | 188 void ChromeBrowserMainPartsMac::DidEndMainMessageLoop() { |
| 189 AppController* appController = [NSApp delegate]; | 189 AppController* appController = [NSApp delegate]; |
| 190 [appController didEndMainMessageLoop]; | 190 [appController didEndMainMessageLoop]; |
| 191 } | 191 } |
| OLD | NEW |