diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-02 02:32:16 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-02 02:32:16 +0000 |
commit | 111cda25bf5f23d339ecc432445fe6f7f166d43b (patch) | |
tree | 9162ca97e7a729d438bd86a2e29b99cfe38d4831 /webkit/quota | |
parent | 91a0f4cd20ebfebf7c95fc8e79da6a3e26773725 (diff) | |
download | chromium_src-111cda25bf5f23d339ecc432445fe6f7f166d43b.zip chromium_src-111cda25bf5f23d339ecc432445fe6f7f166d43b.tar.gz chromium_src-111cda25bf5f23d339ecc432445fe6f7f166d43b.tar.bz2 |
Remove static initializer from quota_temporary_storage_evictor.cc
BUG=94925
TEST=none
TBR=kinuko
Review URL: http://codereview.chromium.org/8775031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112614 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/quota')
-rw-r--r-- | webkit/quota/quota_temporary_storage_evictor.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/webkit/quota/quota_temporary_storage_evictor.cc b/webkit/quota/quota_temporary_storage_evictor.cc index 30bac6d..689db4d 100644 --- a/webkit/quota/quota_temporary_storage_evictor.cc +++ b/webkit/quota/quota_temporary_storage_evictor.cc @@ -26,8 +26,7 @@ namespace { const int64 kMBytes = 1024 * 1024; const double kUsageRatioToStartEviction = 0.7; const int kThresholdOfErrorsToStopEviction = 5; -const base::TimeDelta kHistogramReportInterval = - base::TimeDelta::FromMilliseconds(60 * 60 * 1000); // 1 hour +const int kHistogramReportIntervalMinutes = 60; } namespace quota { @@ -130,8 +129,10 @@ void QuotaTemporaryStorageEvictor::Start() { if (histogram_timer_.IsRunning()) return; - histogram_timer_.Start(FROM_HERE, kHistogramReportInterval, this, - &QuotaTemporaryStorageEvictor::ReportPerHourHistogram); + + histogram_timer_.Start( + FROM_HERE, base::TimeDelta::FromMinutes(kHistogramReportIntervalMinutes), + this, &QuotaTemporaryStorageEvictor::ReportPerHourHistogram); } void QuotaTemporaryStorageEvictor::StartEvictionTimerWithDelay(int delay_ms) { |