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

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

Issue 22909041: Refactor GetAboutRequest and GetApplistRequest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 53a62008da41f6ee7f4cddb0beb6559947bf0f11..21b3bf32756d6564376e3df4a29b24d1ac769f89 100644
--- a/chrome/browser/google_apis/drive_api_url_generator.cc
+++ b/chrome/browser/google_apis/drive_api_url_generator.cc
@@ -16,7 +16,7 @@ namespace {
// Hard coded URLs for communication with a google drive server.
const char kDriveV2AboutUrl[] = "/drive/v2/about";
-const char kDriveV2ApplistUrl[] = "/drive/v2/apps";
+const char kDriveV2AppsUrl[] = "/drive/v2/apps";
const char kDriveV2ChangelistUrl[] = "/drive/v2/changes";
const char kDriveV2FilesUrl[] = "/drive/v2/files";
const char kDriveV2FileUrlPrefix[] = "/drive/v2/files/";
@@ -57,12 +57,12 @@ const char DriveApiUrlGenerator::kBaseUrlForProduction[] =
const char DriveApiUrlGenerator::kBaseDownloadUrlForProduction[] =
"https://www.googledrive.com/host/";
-GURL DriveApiUrlGenerator::GetAboutUrl() const {
+GURL DriveApiUrlGenerator::GetAboutGetUrl() const {
return base_url_.Resolve(kDriveV2AboutUrl);
}
-GURL DriveApiUrlGenerator::GetApplistUrl() const {
- return base_url_.Resolve(kDriveV2ApplistUrl);
+GURL DriveApiUrlGenerator::GetAppsListUrl() const {
+ return base_url_.Resolve(kDriveV2AppsUrl);
}
GURL DriveApiUrlGenerator::GetChangelistUrl(
« 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