summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cache_manager_host.cc
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-13 14:56:13 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-13 14:56:13 +0000
commit8b5ac3aa3be206660efb5ac4f95ab48c4dab117e (patch)
tree83a9d49fc92368b8fcafeb6f1e9a15df89951455 /chrome/browser/cache_manager_host.cc
parentfa1afe31ecd9b3d2720bb1b5eb35ebfebf9d5c64 (diff)
downloadchromium_src-8b5ac3aa3be206660efb5ac4f95ab48c4dab117e.zip
chromium_src-8b5ac3aa3be206660efb5ac4f95ab48c4dab117e.tar.gz
chromium_src-8b5ac3aa3be206660efb5ac4f95ab48c4dab117e.tar.bz2
Remove a static initializer for a TimeDelta constant.
Review URL: http://codereview.chromium.org/17631 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cache_manager_host.cc')
-rw-r--r--chrome/browser/cache_manager_host.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/chrome/browser/cache_manager_host.cc b/chrome/browser/cache_manager_host.cc
index c68cbaa8..cc0f2e3 100644
--- a/chrome/browser/cache_manager_host.cc
+++ b/chrome/browser/cache_manager_host.cc
@@ -23,10 +23,6 @@ static const unsigned int kReviseAllocationDelayMS = 200 /* milliseconds */;
// The default size limit of the in-memory cache is 8 MB
static const int kDefaultMemoryCacheSize = 8 * 1024 * 1024;
-// The amount of idle time before we consider a tab to be "inactive"
-const TimeDelta CacheManagerHost::kRendererInactiveThreshold =
- TimeDelta::FromMinutes(5);
-
namespace {
int GetDefaultCacheSize() {
@@ -367,7 +363,7 @@ void CacheManagerHost::FindInactiveRenderers() {
StatsMap::iterator elmt = stats_.find(*iter);
DCHECK(elmt != stats_.end());
TimeDelta idle = Time::Now() - elmt->second.access;
- if (idle >= kRendererInactiveThreshold) {
+ if (idle >= TimeDelta::FromMinutes(kRendererInactiveThresholdMinutes)) {
// Moved to inactive status. This invalidates our iterator.
inactive_renderers_.insert(*iter);
active_renderers_.erase(*iter);