diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-11 13:24:16 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-11 13:24:16 +0000 |
commit | 25c715da81b42f62e1a7ece7b2ff1a73fbac507c (patch) | |
tree | ee7a52c5057e8ba30502025ff43cc90556905c5f /base | |
parent | 7dd980c575d35bbf879b93a82b78ec22bbba6ccf (diff) | |
download | chromium_src-25c715da81b42f62e1a7ece7b2ff1a73fbac507c.zip chromium_src-25c715da81b42f62e1a7ece7b2ff1a73fbac507c.tar.gz chromium_src-25c715da81b42f62e1a7ece7b2ff1a73fbac507c.tar.bz2 |
drive: Mark cache entry as dirty before truncating the cache file
The existing code results in irrelevant cache state when DB operation fails.
Call MarkDirty before modifying the cache file.
Notify the observer about the cache file change no matter if the file was actually truncated or not, to clear the dirty state.
BUG=None
TEST=unit_tests
Review URL: https://chromiumcodereview.appspot.com/19046002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211102 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
0 files changed, 0 insertions, 0 deletions