summaryrefslogtreecommitdiffstats
path: root/chrome/common/json_pref_store.h
diff options
context:
space:
mode:
authordilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-25 10:59:56 +0000
committerdilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-25 10:59:56 +0000
commit3826fed1adbc6a70f55696e0e4404862906a6c97 (patch)
tree3bc6ea1761aa4aeff79c3984a63879db61636325 /chrome/common/json_pref_store.h
parentb22d9b8f0dc653557e962708b52a35ff593471b4 (diff)
downloadchromium_src-3826fed1adbc6a70f55696e0e4404862906a6c97.zip
chromium_src-3826fed1adbc6a70f55696e0e4404862906a6c97.tar.gz
chromium_src-3826fed1adbc6a70f55696e0e4404862906a6c97.tar.bz2
Provide lazy CommitPendingWrites in addition to eager SavePersistentPrefs.
We need to land pending writes to disk before doing chromeos::RestartJob. However SavePersistentPrefs is not lazy and takes time even if there is nothing to write. Fix it. BUG=chromium-os:13102,chromium-os:6924 TEST=Manual Review URL: http://codereview.chromium.org/6713032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/json_pref_store.h')
-rw-r--r--chrome/common/json_pref_store.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/common/json_pref_store.h b/chrome/common/json_pref_store.h
index d5970b95..8f1cbd7 100644
--- a/chrome/common/json_pref_store.h
+++ b/chrome/common/json_pref_store.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -46,6 +46,7 @@ class JsonPrefStore : public PersistentPrefStore,
virtual PrefReadError ReadPrefs();
virtual bool WritePrefs();
virtual void ScheduleWritePrefs();
+ virtual void CommitPendingWrite();
// TODO(battre) remove this function
virtual void ReportValueChanged(const std::string& key);