summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_process_impl.cc
diff options
context:
space:
mode:
authorprasadt@chromium.org <prasadt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-24 16:52:53 +0000
committerprasadt@chromium.org <prasadt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-24 16:52:53 +0000
commitc10fa39515fee77141ba42b07056fecf2f07fd95 (patch)
tree05f44d9a969634b5681ebd6240ea17b3f764d447 /chrome/browser/browser_process_impl.cc
parentf143707210de1a934c46a62c79ef0d8223b4a863 (diff)
downloadchromium_src-c10fa39515fee77141ba42b07056fecf2f07fd95.zip
chromium_src-c10fa39515fee77141ba42b07056fecf2f07fd95.tar.gz
chromium_src-c10fa39515fee77141ba42b07056fecf2f07fd95.tar.bz2
Autorestart on update should happen when (among other things), the browser is in
KeepAlive mode. The condition to check that in CanAutorestartForUpdate() is reversed. BUG=none TEST=On Linux - Change BrowserProcessImpl::StartAutoupdateTimer() function to change the timer from 6hrs to 30 seconds. Build and run chrome with --no-startup-window and --keep-alive-for-test flags. Run "touch" on browser exe to fake an update. Wait for 30 seconds and verify that the browser shuts down and restarts. Review URL: http://codereview.chromium.org/3206003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57197 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process_impl.cc')
-rw-r--r--chrome/browser/browser_process_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 2ca9f62..8dcdbb6 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -717,7 +717,7 @@ void BrowserProcessImpl::DoInspectorFilesCheck() {
bool BrowserProcessImpl::CanAutorestartForUpdate() const {
// Check if browser is in the background and if it needs to be restarted to
// apply a pending update.
- return BrowserList::size() == 0 && !BrowserList::WillKeepAlive() &&
+ return BrowserList::size() == 0 && BrowserList::WillKeepAlive() &&
Upgrade::IsUpdatePendingRestart();
}