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

Unified Diff: components/bookmarks/browser/bookmark_storage.cc

Issue 1265363002: Cleanup nits in ImportantFileWriter and JsonPrefStore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self review Created 5 years, 4 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 | « base/prefs/json_pref_store.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bookmarks/browser/bookmark_storage.cc
diff --git a/components/bookmarks/browser/bookmark_storage.cc b/components/bookmarks/browser/bookmark_storage.cc
index bc3fbfb24cc91827f118a4abfb6e9daab8bad259..ec053a7163c8c28e743619038f1ea1b9b631c800 100644
--- a/components/bookmarks/browser/bookmark_storage.cc
+++ b/components/bookmarks/browser/bookmark_storage.cc
@@ -143,10 +143,11 @@ BookmarkStorage::BookmarkStorage(
const base::FilePath& profile_path,
base::SequencedTaskRunner* sequenced_task_runner)
: model_(model),
- writer_(profile_path.Append(kBookmarksFileName), sequenced_task_runner),
+ writer_(profile_path.Append(kBookmarksFileName),
+ sequenced_task_runner,
+ base::TimeDelta::FromMilliseconds(kSaveDelayMS)),
+ sequenced_task_runner_(sequenced_task_runner),
weak_factory_(this) {
- sequenced_task_runner_ = sequenced_task_runner;
- writer_.set_commit_interval(base::TimeDelta::FromMilliseconds(kSaveDelayMS));
sequenced_task_runner_->PostTask(FROM_HERE,
base::Bind(&BackupCallback, writer_.path()));
}
« no previous file with comments | « base/prefs/json_pref_store.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698