Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: chrome/browser/chrome_browser_main_mac.mm

Issue 10948019: Remove use of weakptr for RemovableDeviceNotificationsMac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698