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

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

Issue 23757004: Refactor InsertResourceRequest and DeleteResourceRequest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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/google_apis/drive_api_url_generator.cc
diff --git a/chrome/browser/google_apis/drive_api_url_generator.cc b/chrome/browser/google_apis/drive_api_url_generator.cc
index 1f65916f736dce6c7f924df39368cee44aea3d8d..476781b762dccd576792553b55baebb26f802b69 100644
--- a/chrome/browser/google_apis/drive_api_url_generator.cc
+++ b/chrome/browser/google_apis/drive_api_url_generator.cc
@@ -163,15 +163,14 @@ GURL DriveApiUrlGenerator::GetChangesListUrl(bool include_deleted,
return url;
}
-GURL DriveApiUrlGenerator::GetChildrenUrl(
- const std::string& resource_id) const {
- return base_url_.Resolve(
- base::StringPrintf(kDriveV2ChildrenUrlFormat,
- net::EscapePath(resource_id).c_str()));
+GURL DriveApiUrlGenerator::GetChildrenInsertUrl(
+ const std::string& file_id) const {
+ return base_url_.Resolve(base::StringPrintf(
+ kDriveV2ChildrenUrlFormat, net::EscapePath(file_id).c_str()));
}
-GURL DriveApiUrlGenerator::GetChildrenUrlForRemoval(
- const std::string& folder_id, const std::string& child_id) const {
+GURL DriveApiUrlGenerator::GetChildrenDeleteUrl(
+ const std::string& child_id, const std::string& folder_id) const {
return base_url_.Resolve(
base::StringPrintf(kDriveV2ChildrenUrlForRemovalFormat,
net::EscapePath(folder_id).c_str(),
« no previous file with comments | « chrome/browser/google_apis/drive_api_url_generator.h ('k') | chrome/browser/google_apis/drive_api_url_generator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698