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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator.cc

Issue 893383002: Never launch a new window when --no-startup-window is specified. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bracket fix Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/startup/startup_browser_creator.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc
index 238fdb5ac570c5beaf5388ee7fc075978126bbd6..50e42fa6d6e0f832637dbe58b3f6a5664ebf3881 100644
--- a/chrome/browser/ui/startup/startup_browser_creator.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc
@@ -600,6 +600,11 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
silent_launch = true;
}
+ // If --no-startup-window is specified and Chrome is already running then do
+ // not open a new window.
+ if (!process_startup && command_line.HasSwitch(switches::kNoStartupWindow))
+ silent_launch = true;
+
// If we don't want to launch a new browser window or tab we are done here.
if (silent_launch)
return true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698