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( |