diff options
author | dilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-25 10:59:56 +0000 |
---|---|---|
committer | dilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-25 10:59:56 +0000 |
commit | 3826fed1adbc6a70f55696e0e4404862906a6c97 (patch) | |
tree | 3bc6ea1761aa4aeff79c3984a63879db61636325 /chrome/common/persistent_pref_store.h | |
parent | b22d9b8f0dc653557e962708b52a35ff593471b4 (diff) | |
download | chromium_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/persistent_pref_store.h')
-rw-r--r-- | chrome/common/persistent_pref_store.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/common/persistent_pref_store.h b/chrome/common/persistent_pref_store.h index c79d678..300e649 100644 --- a/chrome/common/persistent_pref_store.h +++ b/chrome/common/persistent_pref_store.h @@ -67,6 +67,9 @@ class PersistentPrefStore : public PrefStore { // Schedules an asynchronous write operation. virtual void ScheduleWritePrefs() = 0; + + // Lands any pending writes to disk. + virtual void CommitPendingWrite() = 0; }; #endif // CHROME_COMMON_PERSISTENT_PREF_STORE_H_ |