Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Unified Diff: webkit/quota/quota_temporary_storage_evictor.cc

Issue 8775031: Remove static initializer from quota_temporary_storage_evictor.cc (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/quota_temporary_storage_evictor.cc
diff --git a/webkit/quota/quota_temporary_storage_evictor.cc b/webkit/quota/quota_temporary_storage_evictor.cc
index 30bac6d8de37647c7bbd9448e6a0e2525b11f265..689db4ddd946b03defdedd06eaa45504b9e54613 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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698