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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/startup/startup_browser_creator_impl.h" 5 #include "chrome/browser/ui/startup/startup_browser_creator_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "apps/app_restore_service.h" 10 #include "apps/app_restore_service.h"
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 return (app_tab != NULL); 489 return (app_tab != NULL);
490 } 490 }
491 } 491 }
492 return false; 492 return false;
493 } 493 }
494 494
495 void StartupBrowserCreatorImpl::ProcessLaunchURLs( 495 void StartupBrowserCreatorImpl::ProcessLaunchURLs(
496 bool process_startup, 496 bool process_startup,
497 const std::vector<GURL>& urls_to_open, 497 const std::vector<GURL>& urls_to_open,
498 chrome::HostDesktopType desktop_type) { 498 chrome::HostDesktopType desktop_type) {
499 // If we're starting up in "background mode" (no open browser window) then 499 // Don't open any browser windows if we're starting up in "background mode".
500 // don't open any browser windows, unless kAutoLaunchAtStartup is also 500 if (process_startup && command_line_.HasSwitch(switches::kNoStartupWindow))
501 // specified.
502 if (process_startup &&
503 command_line_.HasSwitch(switches::kNoStartupWindow) &&
504 !command_line_.HasSwitch(switches::kAutoLaunchAtStartup)) {
505 return; 501 return;
506 }
507 502
508 // Determine whether or not this launch must include the welcome page. 503 // Determine whether or not this launch must include the welcome page.
509 InitializeWelcomeRunType(urls_to_open); 504 InitializeWelcomeRunType(urls_to_open);
510 505
511 // TODO(tapted): Move this to startup_browser_creator_win.cc after refactor. 506 // TODO(tapted): Move this to startup_browser_creator_win.cc after refactor.
512 #if defined(OS_WIN) 507 #if defined(OS_WIN)
513 if (base::win::GetVersion() >= base::win::VERSION_WIN8) { 508 if (base::win::GetVersion() >= base::win::VERSION_WIN8) {
514 // See if there are apps for this profile that should be launched on startup 509 // See if there are apps for this profile that should be launched on startup
515 // due to a switch from Metro mode. 510 // due to a switch from Metro mode.
516 app_metro_launch::HandleAppLaunchForMetroRestart(profile_); 511 app_metro_launch::HandleAppLaunchForMetroRestart(profile_);
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 TriggeredProfileResetter* triggered_profile_resetter = 995 TriggeredProfileResetter* triggered_profile_resetter =
1001 TriggeredProfileResetterFactory::GetForBrowserContext(profile_); 996 TriggeredProfileResetterFactory::GetForBrowserContext(profile_);
1002 // TriggeredProfileResetter instance will be nullptr for incognito profiles. 997 // TriggeredProfileResetter instance will be nullptr for incognito profiles.
1003 if (triggered_profile_resetter) { 998 if (triggered_profile_resetter) {
1004 has_reset_trigger = triggered_profile_resetter->HasResetTrigger(); 999 has_reset_trigger = triggered_profile_resetter->HasResetTrigger();
1005 triggered_profile_resetter->ClearResetTrigger(); 1000 triggered_profile_resetter->ClearResetTrigger();
1006 } 1001 }
1007 #endif // defined(OS_WIN) 1002 #endif // defined(OS_WIN)
1008 return has_reset_trigger; 1003 return has_reset_trigger;
1009 } 1004 }
OLDNEW
« 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