Commit 1ac1f138 authored by wfh's avatar wfh Committed by Commit bot

Never launch a new window when --no-startup-window is specified.

BUG=455070
TEST=manual, according to steps in bug.

Review URL: https://codereview.chromium.org/893383002

Cr-Commit-Position: refs/heads/master@{#314603}
parent d063c314
...@@ -600,6 +600,11 @@ bool StartupBrowserCreator::ProcessCmdLineImpl( ...@@ -600,6 +600,11 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
silent_launch = true; 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 we don't want to launch a new browser window or tab we are done here.
if (silent_launch) if (silent_launch)
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment