Chromium Code Reviews| Index: chrome/browser/chromeos/drive/drive_feed_processor.cc |
| diff --git a/chrome/browser/chromeos/drive/drive_feed_processor.cc b/chrome/browser/chromeos/drive/drive_feed_processor.cc |
| index 37679cbed39f7bc485a5560850ee7bade7719602..b7f200f6b1701fdad58e1694f4e9230121d7d1a4 100644 |
| --- a/chrome/browser/chromeos/drive/drive_feed_processor.cc |
| +++ b/chrome/browser/chromeos/drive/drive_feed_processor.cc |
| @@ -90,6 +90,12 @@ void DriveFeedProcessor::ApplyEntryProtoMap( |
| } |
| resource_metadata_->set_largest_changestamp(feed_changestamp); |
| + scoped_ptr<DriveResourceMetadata> orphaned_resources( |
| + new DriveResourceMetadata); |
| + // This may look weird, but the root has to have some resource ID, |
| + // otherwise cleaning up the resource metadata fails. |
| + orphaned_resources->InitializeRootEntry("orphan"); |
|
satorux1
2012/10/29 05:28:35
This code should be unnecessary. orphaned resource
kochi
2012/10/29 05:52:39
Removed.
|
| + |
| // TODO(achuith): Get rid of this conversion of DriveEntryProtoMap to |
| // ResourceMap. |
| ResourceMap resource_map; |