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

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

Issue 12585003: drive: Add showroot=true to WAPI feed URLs and ignore "no parent" entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update unittests. Created 7 years, 9 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/change_list_processor.cc
diff --git a/chrome/browser/chromeos/drive/change_list_processor.cc b/chrome/browser/chromeos/drive/change_list_processor.cc
index fce8ccdf0711b3a8204e333ba4c417b51db208c6..3dac7ee60a9752354525ec951d9087ea791ccbab 100644
--- a/chrome/browser/chromeos/drive/change_list_processor.cc
+++ b/chrome/browser/chromeos/drive/change_list_processor.cc
@@ -352,6 +352,14 @@ void ChangeListProcessor::FeedToEntryProtoMap(
if (entry_proto.resource_id().empty())
continue;
+ // TODO(haruki): Apply mapping from an empty parent to special dummy
+ // directory here or in ConvertResourceEntryToDriveEntryProto. See
+ // http://crbug.com/174233 http://crbug.com/171207. Until we implement it,
+ // ChangeListProcessor ignores such "no parent" entries.
+ if (entry_proto.parent_resource_id().empty()) {
+ continue;
+ }
+
// Count the number of files.
if (uma_stats && !entry_proto.file_info().is_directory()) {
uma_stats->IncrementNumFiles(

Powered by Google App Engine
This is Rietveld 408576698