Commit 111cda25 authored by thakis@chromium.org's avatar thakis@chromium.org

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
parent 91a0f4cd
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment