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

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

Issue 1439803002: Remove logic for unused foreground auto-launch mode on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@d1_rm_auto_launch_trial
Patch Set: oops Created 5 years, 1 month 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 | « chrome/browser/background/background_mode_manager.cc ('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/ui/startup/startup_browser_creator_impl.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.cc b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
index 9e5bfe7fe719c0c433f8c1e965bd8bb2edc22910..680f94f014c1f04cf5469d1fa298fe08112c415d 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
@@ -496,14 +496,9 @@ void StartupBrowserCreatorImpl::ProcessLaunchURLs(
bool process_startup,
const std::vector<GURL>& urls_to_open,
chrome::HostDesktopType desktop_type) {
- // If we're starting up in "background mode" (no open browser window) then
- // don't open any browser windows, unless kAutoLaunchAtStartup is also
- // specified.
- if (process_startup &&
- command_line_.HasSwitch(switches::kNoStartupWindow) &&
- !command_line_.HasSwitch(switches::kAutoLaunchAtStartup)) {
+ // Don't open any browser windows if we're starting up in "background mode".
+ if (process_startup && command_line_.HasSwitch(switches::kNoStartupWindow))
return;
- }
// Determine whether or not this launch must include the welcome page.
InitializeWelcomeRunType(urls_to_open);
« no previous file with comments | « chrome/browser/background/background_mode_manager.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698