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

Unified Diff: chrome/browser/google_apis/gdata_wapi_url_generator.cc

Issue 12039005: drive: Deal with the root directory in the same way as others in MoveOperation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 7 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
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_url_generator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/gdata_wapi_url_generator.cc
diff --git a/chrome/browser/google_apis/gdata_wapi_url_generator.cc b/chrome/browser/google_apis/gdata_wapi_url_generator.cc
index ac38ef6623382665ab50213430da78698e778672..527ec49d7b4f9b686168c9bc750624f2beea227a 100644
--- a/chrome/browser/google_apis/gdata_wapi_url_generator.cc
+++ b/chrome/browser/google_apis/gdata_wapi_url_generator.cc
@@ -32,6 +32,10 @@ const char kResourceListRootURL[] = "/feeds/default/private/full";
// Metadata feed with things like user quota.
const char kAccountMetadataURL[] = "/feeds/metadata/default";
+// URL for the content_url of the root directory.
+const char kRootContentURL[] =
+ "/feeds/default/private/full/folder%3Aroot/contents";
+
#ifndef NDEBUG
// Use smaller 'page' size while debugging to ensure we hit feed reload
// almost always. Be careful not to use something too small on account that
@@ -161,4 +165,8 @@ GURL GDataWapiUrlGenerator::GenerateAccountMetadataUrl() const {
return AddMetadataUrlParams(base_url_.Resolve(kAccountMetadataURL));
}
+GURL GDataWapiUrlGenerator::GenerateRootContentUrl() const {
+ return base_url_.Resolve(kRootContentURL);
+}
+
} // namespace google_apis
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_url_generator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698