Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: chrome/browser/chromeos/drive/file_cache.h

Issue 54223003: drive: Recover cache entries from trashed DB to filter out non-dirty cache files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/drive/file_cache.h
diff --git a/chrome/browser/chromeos/drive/file_cache.h b/chrome/browser/chromeos/drive/file_cache.h
index 66a34a281929afa82c982f4892a79aae4bc02c8c..1127ec9934ba2aebfc221e8f36ec118a280ef6e8 100644
--- a/chrome/browser/chromeos/drive/file_cache.h
+++ b/chrome/browser/chromeos/drive/file_cache.h
@@ -157,7 +157,11 @@ class FileCache {
// Moves files in the cache directory which are not manged by FileCache to
// |dest_directory|.
- bool RecoverFilesFromCacheDirectory(const base::FilePath& dest_directory);
+ // |recovered_cache_entries| should contain cache entries recovered from the
+ // trashed metadata DB. It is used to ignore non-dirty files.
+ bool RecoverFilesFromCacheDirectory(
+ const base::FilePath& dest_directory,
+ const std::map<std::string, FileCacheEntry>& recovered_cache_entries);
private:
friend class FileCacheTest;
« no previous file with comments | « chrome/browser/chromeos/drive/drive_integration_service.cc ('k') | chrome/browser/chromeos/drive/file_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698