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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 8413023: Remove --no-startup-window flag when restarting chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Also remove kRestoreLastSession on restart so it does not persist. Created 9 years, 2 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 | « chrome/browser/browser_process_impl.h ('k') | chrome/common/switch_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 17926f766da86b28e8af6dc6ea2d589e2a464c60..5133dd92ecbe9597d3142c37fdfd652634306048 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -1121,7 +1121,7 @@ const char* const kSwitchesToAddOnAutorestart[] = {
switches::kNoStartupWindow
};
-void BrowserProcessImpl::RestartPersistentInstance() {
+void BrowserProcessImpl::RestartBackgroundInstance() {
CommandLine* old_cl = CommandLine::ForCurrentProcess();
scoped_ptr<CommandLine> new_cl(new CommandLine(old_cl->GetProgram()));
@@ -1158,7 +1158,7 @@ void BrowserProcessImpl::RestartPersistentInstance() {
void BrowserProcessImpl::OnAutoupdateTimer() {
if (CanAutorestartForUpdate()) {
DLOG(WARNING) << "Detected update. Restarting browser.";
- RestartPersistentInstance();
+ RestartBackgroundInstance();
}
}
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/common/switch_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698