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

Unified Diff: chrome/browser/chromeos/drive/drive_integration_service.cc

Issue 55713002: drive: Use base_name recovered from trashed DB when DB corruption happens (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use title Created 7 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/file_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/drive_integration_service.cc
diff --git a/chrome/browser/chromeos/drive/drive_integration_service.cc b/chrome/browser/chromeos/drive/drive_integration_service.cc
index aae5cf21ce349b1911cd9e373a849fb99fd15bf0..b5bdb7c725282b9aaac0d88826a8c88ab6904372 100644
--- a/chrome/browser/chromeos/drive/drive_integration_service.cc
+++ b/chrome/browser/chromeos/drive/drive_integration_service.cc
@@ -143,14 +143,15 @@ FileError InitializeMetadata(
.InsertBeforeExtensionASCII(base::StringPrintf(" (%d)", uniquifier));
}
- std::map<std::string, FileCacheEntry> recovered_cache_entries;
- metadata_storage->RecoverCacheEntriesFromTrashedResourceMap(
- &recovered_cache_entries);
+ internal::ResourceMetadataStorage::RecoveredCacheInfoMap
+ recovered_cache_info;
+ metadata_storage->RecoverCacheInfoFromTrashedResourceMap(
+ &recovered_cache_info);
LOG(INFO) << "DB could not be opened for some reasons. "
<< "Recovering cache files to " << dest_directory.value();
if (!cache->RecoverFilesFromCacheDirectory(dest_directory,
- recovered_cache_entries)) {
+ recovered_cache_info)) {
LOG(WARNING) << "Failed to recover cache files.";
return FILE_ERROR_FAILED;
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/file_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698