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

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

Issue 118953003: drive: Stop setting dummy resource ID for "drive" and "other" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/file_system.cc
diff --git a/chrome/browser/chromeos/drive/file_system.cc b/chrome/browser/chromeos/drive/file_system.cc
index 2d5bc97e77ccef1bf713f2f00c49b7eb836ea3a6..bfa7208830e619d00262a700345a051a516a3653 100644
--- a/chrome/browser/chromeos/drive/file_system.cc
+++ b/chrome/browser/chromeos/drive/file_system.cc
@@ -743,8 +743,8 @@ void FileSystem::GetShareUrlAfterGetResourceEntry(
callback.Run(error, GURL());
return;
}
- if (util::IsSpecialResourceId(entry->resource_id())) {
- // Do not load special directories. Just return.
+ if (entry->resource_id().empty()) {
+ // This entry does not exist on the server. Just return.
callback.Run(FILE_ERROR_FAILED, GURL());
return;
}
« no previous file with comments | « chrome/browser/chromeos/drive/change_list_processor_unittest.cc ('k') | chrome/browser/chromeos/drive/file_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698