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

Unified Diff: chrome/browser/browser_init.cc

Issue 503023: Adds the cmdline "--new-window" that instructs the init sequence... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: AUTHORS Created 11 years 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
« no previous file with comments | « AUTHORS ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_init.cc
===================================================================
--- chrome/browser/browser_init.cc (revision 34613)
+++ chrome/browser/browser_init.cc (working copy)
@@ -439,8 +439,9 @@
Browser* browser = NULL;
if (urls_to_open.empty())
AddStartupURLs(&urls_to_open);
- else
+ else if (!command_line_.HasSwitch(switches::kOpenInNewWindow))
browser = BrowserList::GetLastActive();
+
OpenURLsInBrowser(browser, process_startup, urls_to_open);
}
if (process_startup) {
« no previous file with comments | « AUTHORS ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698