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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 7215040: Fix relaunches on the Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/app_controller_mac.mm
===================================================================
--- chrome/browser/app_controller_mac.mm (revision 90369)
+++ chrome/browser/app_controller_mac.mm (working copy)
@@ -212,17 +212,6 @@
// Set up the command updater for when there are no windows open
[self initMenuState];
-
- // Activate (bring to foreground) if asked to do so. On
- // Windows this logic isn't necessary since
- // BrowserWindow::Activate() calls ::SetForegroundWindow() which is
- // adequate. On Mac, BrowserWindow::Activate() calls -[NSWindow
- // makeKeyAndOrderFront:] which does not activate the application
- // itself.
- const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
- if (parsed_command_line.HasSwitch(switches::kActivateOnLaunch)) {
- [NSApp activateIgnoringOtherApps:YES];
- }
}
// (NSApplicationDelegate protocol) This is the Apple-approved place to override

Powered by Google App Engine
This is Rietveld 408576698