| 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();
|
|
|