diff options
Diffstat (limited to 'chrome/browser/history/history_backend.cc')
-rw-r--r-- | chrome/browser/history/history_backend.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc index d79fa6a..defc2f3 100644 --- a/chrome/browser/history/history_backend.cc +++ b/chrome/browser/history/history_backend.cc @@ -71,8 +71,9 @@ namespace history { // dependency between MostVisitedModel and the history backend. static const int kSegmentDataRetention = 90; -// How long we'll wait to do a commit, so that things are batched together. -static const int kCommitIntervalSeconds = 10; +// The number of milliseconds we'll wait to do a commit, so that things are +// batched together. +static const int kCommitIntervalMs = 10000; // The amount of time before we re-fetch the favicon. static const int kFaviconRefetchDays = 7; @@ -1941,7 +1942,7 @@ void HistoryBackend::ScheduleCommit() { MessageLoop::current()->PostDelayedTask( FROM_HERE, base::Bind(&CommitLaterTask::RunCommit, scheduled_commit_.get()), - base::TimeDelta::FromSeconds(kCommitIntervalSeconds)); + kCommitIntervalMs); } void HistoryBackend::CancelScheduledCommit() { |