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

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

Issue 11227020: Set root resource ID upon full feed update. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make root_resource_id() work when root_ is not initialized. 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_file_system.cc
diff --git a/chrome/browser/chromeos/drive/drive_file_system.cc b/chrome/browser/chromeos/drive/drive_file_system.cc
index 908001e88b68d23ffaab95aff5556303a75d19a6..259ed920ce7d3454b73311f3d8aa1e70c63df579 100644
--- a/chrome/browser/chromeos/drive/drive_file_system.cc
+++ b/chrome/browser/chromeos/drive/drive_file_system.cc
@@ -392,6 +392,10 @@ void DriveFileSystem::Initialize() {
drive_service_->Initialize(profile_);
resource_metadata_.reset(new DriveResourceMetadata);
+ if (!google_apis::util::IsDriveV2ApiEnabled())
+ resource_metadata_->InitializeRootEntry(kWAPIRootDirectoryResourceId);
+ // If Drive API is enabled, the root directory is initialized after
+ // About resource is obtained.
feed_loader_.reset(new DriveFeedLoader(resource_metadata_.get(),
drive_service_,
webapps_registry_,

Powered by Google App Engine
This is Rietveld 408576698