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

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: Fix for comments 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 fc36a446734eb13fc1f82c04fcafe6808d0dae0d..379b001ba6dcdbdefece893518ddc1a5301b331b 100644
--- a/chrome/browser/chromeos/drive/drive_feed_processor.cc
+++ b/chrome/browser/chromeos/drive/drive_feed_processor.cc
@@ -92,6 +92,9 @@ void DriveFeedProcessor::ApplyEntryProtoMap(
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->SetRootResourceId("orphan");
// TODO(achuith): Get rid of this conversion of DriveEntryProtoMap to
// ResourceMap.

Powered by Google App Engine
This is Rietveld 408576698