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

Unified Diff: chrome/common/json_pref_store.cc

Issue 8198007: Remove PrefService::ScheduleSavePersistentPrefs and SavePersistentPrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos Created 9 years, 2 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
Index: chrome/common/json_pref_store.cc
diff --git a/chrome/common/json_pref_store.cc b/chrome/common/json_pref_store.cc
index ac4a78020a7ddf69c15043a743cbd3ba249eaedf..42e7eb050b75a6a6bb5c8b73c4355e2a50b13ea3 100644
--- a/chrome/common/json_pref_store.cc
+++ b/chrome/common/json_pref_store.cc
@@ -283,26 +283,6 @@ PersistentPrefStore::PrefReadError JsonPrefStore::ReadPrefs() {
return error;
}
-bool JsonPrefStore::WritePrefs() {
- std::string data;
- if (!SerializeData(&data))
- return false;
-
- // Don't actually write prefs if we're read-only or don't have any pending
- // writes.
- // TODO(bauerb): Make callers of this method call CommitPendingWrite directly.
- if (writer_.HasPendingWrite() && !read_only_)
- writer_.WriteNow(data);
-
- return true;
-}
-
-void JsonPrefStore::ScheduleWritePrefs() {
- // Writing prefs should be scheduled automatically, so this is a no-op
- // for now.
- // TODO(bauerb): Remove calls to this method.
-}
-
void JsonPrefStore::CommitPendingWrite() {
if (writer_.HasPendingWrite() && !read_only_)
writer_.DoScheduledWrite();

Powered by Google App Engine
This is Rietveld 408576698