summaryrefslogtreecommitdiffstats
path: root/chrome/installer
diff options
context:
space:
mode:
authorprasadt@chromium.org <prasadt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-30 00:57:48 +0000
committerprasadt@chromium.org <prasadt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-30 00:57:48 +0000
commit2ce1d31d6c4c46ad185c49fbe8496396694f57c7 (patch)
tree63cb38f8c0cea76664ebc2d4f5e08237d5ef33df /chrome/installer
parentcd92d9ae828e3054af4582e3da8302cf6ad19e2e (diff)
downloadchromium_src-2ce1d31d6c4c46ad185c49fbe8496396694f57c7.zip
chromium_src-2ce1d31d6c4c46ad185c49fbe8496396694f57c7.tar.gz
chromium_src-2ce1d31d6c4c46ad185c49fbe8496396694f57c7.tar.bz2
Detect new instance of the browser when running in the background in persistent
mode, shutdown and restart the new instance. This is already done for Windows, this CL enables the functionality for Linux. We don't yet have a unit test for this. Local testing is done by: 1) Reducing the timer to 30 seconds. 2) Changing BrowserList::IsInPersistentMode to return true. 3) Setting BrowserProcessImpl::autoupdate_timer_ to 30 seconds interval. 4) Running "touch" command on chrome exe to pretend there is an update. BUG=40975 TEST=none Review URL: http://codereview.chromium.org/1633021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46023 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer')
-rw-r--r--chrome/installer/util/google_update_constants.cc2
-rw-r--r--chrome/installer/util/google_update_constants.h4
2 files changed, 0 insertions, 6 deletions
diff --git a/chrome/installer/util/google_update_constants.cc b/chrome/installer/util/google_update_constants.cc
index a904a74..2c77a0e 100644
--- a/chrome/installer/util/google_update_constants.cc
+++ b/chrome/installer/util/google_update_constants.cc
@@ -33,6 +33,4 @@ const wchar_t kRegEULAAceptedField[] = L"eulaaccepted";
const wchar_t kEnvProductVersionKey[] = L"CHROME_VERSION";
const wchar_t kRegLastRunTimeField[] = L"lastrun";
-const int kUpdateCheckInvervalHours = 6;
-
} // namespace google_update
diff --git a/chrome/installer/util/google_update_constants.h b/chrome/installer/util/google_update_constants.h
index 79100a6..e21a198 100644
--- a/chrome/installer/util/google_update_constants.h
+++ b/chrome/installer/util/google_update_constants.h
@@ -46,10 +46,6 @@ extern const wchar_t kEnvProductVersionKey[];
// last time that chrome ran in the Time internal format.
extern const wchar_t kRegLastRunTimeField[];
-// How often to check if the persistent instance of Chrome needs to restart
-// to install an update.
-extern const int kUpdateCheckInvervalHours;
-
} // namespace google_update
#endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_CONSTANTS_H_