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

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

Issue 68543002: drive: Support offline delete (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move to drive/other and mark as deleted 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
Index: chrome/browser/chromeos/drive/search_metadata.cc
diff --git a/chrome/browser/chromeos/drive/search_metadata.cc b/chrome/browser/chromeos/drive/search_metadata.cc
index 505a1d087f725cbe64ec27b1dcaf959f080255dc..845fc1c7bb3c5b5a957d5a58351ea4be6ba5347e 100644
--- a/chrome/browser/chromeos/drive/search_metadata.cc
+++ b/chrome/browser/chromeos/drive/search_metadata.cc
@@ -118,9 +118,10 @@ bool IsEligibleEntry(const ResourceEntry& entry,
return cache_entry.is_present();
}
- // Exclude "drive", "drive/root", and "drive/other".
+ // Exclude "drive", "drive/root", "drive/other" and deleted entries.
if (it->GetID() == util::kDriveGrandRootLocalId ||
- entry.parent_local_id() == util::kDriveGrandRootLocalId) {
+ entry.parent_local_id() == util::kDriveGrandRootLocalId ||
+ entry.deleted()) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698