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 ea4d85f002f9e33803a35e61f635211d67157ab7..c6ef1350718088e810b0841242c4bc41120e2a39 100644 |
--- a/chrome/browser/chromeos/drive/change_list_processor.cc |
+++ b/chrome/browser/chromeos/drive/change_list_processor.cc |
@@ -112,9 +112,6 @@ void ChangeListProcessor::ApplyFeeds( |
NOTREACHED(); |
} |
- // TODO(haruki): Add pseudo tree structure for "drive"/root" and "drive/other" |
- // when we start using those namespaces. The root folder ID is necessary for |
- // full feed update. |
ApplyEntryProtoMap(is_delta_feed); |
// Shouldn't record histograms when processing delta feeds. |
@@ -384,23 +381,12 @@ 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. |
- // Please note that this will cause a temporal issue when |
- // - The user unselect all the parent using drive.google.com UI. |
- // ChangeListProcessor just ignores the incoming changes and keeps stale |
- // metadata. We need to work on this ASAP to reduce confusion. |
- 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( |
entry_proto.file_specific_info().is_hosted_document()); |
} |
+ // TODO(haruki): Metric for the num of the entries in "other" directory. |
std::pair<DriveEntryProtoMap::iterator, bool> ret = entry_proto_map_. |
insert(std::make_pair(entry_proto.resource_id(), entry_proto)); |