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

Unified Diff: chrome/browser/history/history_backend.cc

Issue 9185026: Convert use of int ms to TimeDelta in files owned by brettw. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Explicitly include base/time.h in header file. Created 8 years, 11 months 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 | « chrome/browser/history/expire_history_backend.cc ('k') | chrome/browser/history/redirect_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_backend.cc
diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc
index defc2f3ed9040382258545b6256ab891232e51ec..d79fa6a290b9a86bf61b127542c28a17e8caf65c 100644
--- a/chrome/browser/history/history_backend.cc
+++ b/chrome/browser/history/history_backend.cc
@@ -71,9 +71,8 @@ namespace history {
// dependency between MostVisitedModel and the history backend.
static const int kSegmentDataRetention = 90;
-// The number of milliseconds we'll wait to do a commit, so that things are
-// batched together.
-static const int kCommitIntervalMs = 10000;
+// How long we'll wait to do a commit, so that things are batched together.
+static const int kCommitIntervalSeconds = 10;
// The amount of time before we re-fetch the favicon.
static const int kFaviconRefetchDays = 7;
@@ -1942,7 +1941,7 @@ void HistoryBackend::ScheduleCommit() {
MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&CommitLaterTask::RunCommit, scheduled_commit_.get()),
- kCommitIntervalMs);
+ base::TimeDelta::FromSeconds(kCommitIntervalSeconds));
}
void HistoryBackend::CancelScheduledCommit() {
« no previous file with comments | « chrome/browser/history/expire_history_backend.cc ('k') | chrome/browser/history/redirect_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698