summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authoratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-28 18:39:22 +0000
committeratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-28 18:39:22 +0000
commitf6e6d2e326ff72940cea341d53c958d50e03e645 (patch)
tree662a84e4f4421b88e1c6acb3f592aca6dddbe71c /chrome/common
parent0b004b2076b2f7aae68569f5fa17bac82992b6a4 (diff)
downloadchromium_src-f6e6d2e326ff72940cea341d53c958d50e03e645.zip
chromium_src-f6e6d2e326ff72940cea341d53c958d50e03e645.tar.gz
chromium_src-f6e6d2e326ff72940cea341d53c958d50e03e645.tar.bz2
Remove --no-startup-window flag when restarting chrome.
This fixes the problem where if chrome launches in background mode at login, the next time we restart chrome we relaunch it in background mode again. BUG=92391 TEST=Install background app, restart computer so chrome is launched on startup, go to about:flags and change a flag and choose 'Restart' - chrome should reopen any open windows on restart. Review URL: http://codereview.chromium.org/8413023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107763 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/switch_utils.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/common/switch_utils.cc b/chrome/common/switch_utils.cc
index e704d15..41752da 100644
--- a/chrome/common/switch_utils.cc
+++ b/chrome/common/switch_utils.cc
@@ -19,7 +19,9 @@ const char* const kSwitchesToRemoveOnAutorestart[] = {
switches::kFirstRun,
switches::kImport,
switches::kImportFromFile,
- switches::kMakeDefaultBrowser
+ switches::kMakeDefaultBrowser,
+ switches::kNoStartupWindow,
+ switches::kRestoreLastSession
};
void RemoveSwitchesForAutostart(