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

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

Issue 11227020: Set root resource ID upon full feed update. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 8 years, 2 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/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;

Powered by Google App Engine
This is Rietveld 408576698