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

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

Issue 13456002: drive: Fills no-parent entiries in "/drive/other". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased on 192559 Created 7 years, 8 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 25ccf1c91d15d08653e2ed621c45100bff1b0a50..cb34bfb043eda98bd3ffefea0f87faad332f7bfb 100644
--- a/chrome/browser/chromeos/drive/drive_file_system.cc
+++ b/chrome/browser/chromeos/drive/drive_file_system.cc
@@ -1090,6 +1090,11 @@ void DriveFileSystem::RefreshDirectoryAfterGetEntryInfo(
callback.Run(DRIVE_FILE_ERROR_NOT_A_DIRECTORY);
return;
}
+ if (util::IsSpecialResourceId(entry_proto->resource_id())) {
+ // Do not load special directories. Just return.
+ callback.Run(DRIVE_FILE_OK);
+ return;
+ }
change_list_loader_->LoadDirectoryFromServer(
entry_proto->resource_id(),
« no previous file with comments | « chrome/browser/chromeos/drive/change_list_processor.cc ('k') | chrome/browser/chromeos/drive/drive_file_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698