diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-21 01:04:03 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-21 01:04:03 +0000 |
commit | f599e9fc940bef9cb615f90da1e690444a176459 (patch) | |
tree | 77760acd71adde85332215601d4bea5f246c5b4b /chrome/browser/web_resource | |
parent | 104a608acbf0fe57728f95d21c59ed25f61b0482 (diff) | |
download | chromium_src-f599e9fc940bef9cb615f90da1e690444a176459.zip chromium_src-f599e9fc940bef9cb615f90da1e690444a176459.tar.gz chromium_src-f599e9fc940bef9cb615f90da1e690444a176459.tar.bz2 |
Change the promo cache update back to the standard 48 hours.
BUG=67615
TEST=none
Review URL: http://codereview.chromium.org/6086001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69780 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_resource')
-rw-r--r-- | chrome/browser/web_resource/web_resource_service.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/chrome/browser/web_resource/web_resource_service.cc b/chrome/browser/web_resource/web_resource_service.cc index ebe21bc..cdee197 100644 --- a/chrome/browser/web_resource/web_resource_service.cc +++ b/chrome/browser/web_resource/web_resource_service.cc @@ -31,11 +31,8 @@ namespace { // Delay on first fetch so we don't interfere with startup. static const int kStartResourceFetchDelay = 5000; -// Long delay between calls to update the cache (48 hours). -static const int kLongCacheUpdateDelay = 48 * 60 * 60 * 1000; - -// Short delay between calls to update the cache (8 hours). -static const int kShortCacheUpdateDelay = 8 * 60 * 60 * 1000; +// Delay between calls to update the cache (48 hours). +static const int kCacheUpdateDelay = 48 * 60 * 60 * 1000; } // namespace @@ -220,10 +217,7 @@ WebResourceService::WebResourceService(Profile* profile) WebResourceService::~WebResourceService() { } void WebResourceService::Init() { - // Much shorter update time if looking for a promo to display. - cache_update_delay_ = - WebResourceServiceUtil::CanShowPromo(profile_) ? kShortCacheUpdateDelay : - kLongCacheUpdateDelay; + cache_update_delay_ = kCacheUpdateDelay; resource_dispatcher_host_ = g_browser_process->resource_dispatcher_host(); web_resource_fetcher_.reset(new WebResourceFetcher(this)); prefs_->RegisterStringPref(prefs::kNTPWebResourceCacheUpdate, "0"); |