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

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

Issue 494023002: [SyncFS] Don't prune trashed file's dirtiness in MetadataDatabase (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 6997c59df65b85d18e7a88331ce9e42d8bc2d8bd..4e25905ec67cf1c2bf6ecad023675333544c02fc 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database.cc
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database.cc
@@ -1940,7 +1940,8 @@ bool MetadataDatabase::CanClearDirty(const FileTracker& tracker) {
const FileDetails& remote_details = metadata.details();
const FileDetails& synced_details = tracker.synced_details();
if (remote_details.title() != synced_details.title() ||
- remote_details.md5() != synced_details.md5())
+ remote_details.md5() != synced_details.md5() ||
+ remote_details.missing() != synced_details.missing())
return false;
std::set<std::string> parents;
« 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