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

Unified Diff: chrome/browser/sync_file_system/drive_backend/metadata_database.cc

Issue 449383002: [SyncFS] Handle trashed flag in change list as missing file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/metadata_database.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/metadata_database.cc b/chrome/browser/sync_file_system/drive_backend/metadata_database.cc
index 5c3bae8aa639b29ebb83b002a54c4fe09ab2de76..1056e5cee2fd4075a31c416800b309e1b2525de3 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database.cc
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database.cc
@@ -105,7 +105,7 @@ void PopulateFileDetailsByFileResource(
details->set_creation_time(file_resource.created_date().ToInternalValue());
details->set_modification_time(
file_resource.modified_date().ToInternalValue());
- details->set_missing(false);
+ details->set_missing(file_resource.labels().is_trashed());
}
scoped_ptr<FileMetadata> CreateFileMetadataFromFileResource(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698