summaryrefslogtreecommitdiffstats
path: root/chrome/common/pref_names.cc
diff options
context:
space:
mode:
authorasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-03 17:54:34 +0000
committerasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-03 17:54:34 +0000
commit951073ea674d8436fbcfbd6a0310fe20fb2e6a4a (patch)
tree21e794f5116c4bb59174b754920c7cccdcb72639 /chrome/common/pref_names.cc
parentde5a586ec7ca9cbbc45953ef5485cff7d8c8c4f3 (diff)
downloadchromium_src-951073ea674d8436fbcfbd6a0310fe20fb2e6a4a.zip
chromium_src-951073ea674d8436fbcfbd6a0310fe20fb2e6a4a.tar.gz
chromium_src-951073ea674d8436fbcfbd6a0310fe20fb2e6a4a.tar.bz2
Make extensions auto-update schedule persist across browser restarts.
Instead of starting the timer all over again, we instead persist some information about when we had scheduled it and when it actually fired. We then try to balance keeping clients reasonably up to date with avoiding a thundering herd against servers. BUG=http://crbug.com/12545 TEST=none Review URL: http://codereview.chromium.org/160433 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/pref_names.cc')
-rw-r--r--chrome/common/pref_names.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc
index ed4c086..2414dc1 100644
--- a/chrome/common/pref_names.cc
+++ b/chrome/common/pref_names.cc
@@ -527,6 +527,12 @@ const wchar_t kNumKeywords[] = L"user_experience_metrics.num_keywords";
const wchar_t kEnableExtensions[] = L"extensions.enabled";
const wchar_t kEnableUserScripts[] = L"extensions.user_scripts_enabled";
+// Time of the last, and next scheduled, extensions auto-update checks.
+const wchar_t kLastExtensionsUpdateCheck[] =
+ L"extensions.autoupdate.last_check";
+const wchar_t kNextExtensionsUpdateCheck[] =
+ L"extensions.autoupdate.next_check";
+
// New Tab Page URLs that should not be shown as most visited thumbnails.
const wchar_t kNTPMostVisitedURLsBlacklist[] = L"ntp.most_visited_blacklist";