diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-31 06:57:45 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-31 06:57:45 +0000 |
commit | b7af4f1f799a1650504d0fd68dd67ba1e8ed1d3d (patch) | |
tree | c67c0cb7e095a84b4ecadadf3f058e6eb47ce64f /chrome/browser/chromeos/drive/file_cache.h | |
parent | a1eaee74a792a31e3d63c0288af446d61db1c1d5 (diff) | |
download | chromium_src-b7af4f1f799a1650504d0fd68dd67ba1e8ed1d3d.zip chromium_src-b7af4f1f799a1650504d0fd68dd67ba1e8ed1d3d.tar.gz chromium_src-b7af4f1f799a1650504d0fd68dd67ba1e8ed1d3d.tar.bz2 |
drive: Recover cache files when the metadata DB is corrupted
Remove obsolete cache file scan code which does not work after local ID switch.
Add FileCache::RecoverFilesFromCacheDirectory(), which moves unmanaged files to the specified directory with estimated file extension.
BUG=279669
TEST=unit_tests
R=kinaba@chromium.org
Review URL: https://codereview.chromium.org/30063004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/drive/file_cache.h')
-rw-r--r-- | chrome/browser/chromeos/drive/file_cache.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/drive/file_cache.h b/chrome/browser/chromeos/drive/file_cache.h index e6a752a..66a34a2 100644 --- a/chrome/browser/chromeos/drive/file_cache.h +++ b/chrome/browser/chromeos/drive/file_cache.h @@ -155,6 +155,10 @@ class FileCache { // Must be called on the UI thread. void Destroy(); + // Moves files in the cache directory which are not manged by FileCache to + // |dest_directory|. + bool RecoverFilesFromCacheDirectory(const base::FilePath& dest_directory); + private: friend class FileCacheTest; friend class FileCacheTestOnUIThread; |