diff options
author | kinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-08 15:46:24 +0000 |
---|---|---|
committer | kinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-08 15:46:24 +0000 |
commit | 491f4d05ff5c8341fcf97b42ca76bd06dc1269da (patch) | |
tree | f5519213c0392bb0d73b9f472ab47d4ec28722c8 /google_apis/drive/drive_api_url_generator.cc | |
parent | b2446741cd09d4194e2b9773de5ba906030e9146 (diff) | |
download | chromium_src-491f4d05ff5c8341fcf97b42ca76bd06dc1269da.zip chromium_src-491f4d05ff5c8341fcf97b42ca76bd06dc1269da.tar.gz chromium_src-491f4d05ff5c8341fcf97b42ca76bd06dc1269da.tar.bz2 |
Implement DriveAPIService::UninstallApp().
BUG=324166
Review URL: https://codereview.chromium.org/127663002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243571 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_apis/drive/drive_api_url_generator.cc')
-rw-r--r-- | google_apis/drive/drive_api_url_generator.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/google_apis/drive/drive_api_url_generator.cc b/google_apis/drive/drive_api_url_generator.cc index c12b947..e9d89d2 100644 --- a/google_apis/drive/drive_api_url_generator.cc +++ b/google_apis/drive/drive_api_url_generator.cc @@ -17,6 +17,9 @@ namespace { // Hard coded URLs for communication with a google drive server. const char kDriveV2AboutUrl[] = "/drive/v2/about"; const char kDriveV2AppsUrl[] = "/drive/v2/apps"; +// apps.delete API is exposed through a special endpoint v2internal that +// is accessible only by the official API key for Chrome. +const char kDriveV2AppsDeleteUrlFormat[] = "/drive/v2internal/apps/%s"; const char kDriveV2ChangelistUrl[] = "/drive/v2/changes"; const char kDriveV2FilesUrl[] = "/drive/v2/files"; const char kDriveV2FileUrlPrefix[] = "/drive/v2/files/"; @@ -60,6 +63,11 @@ GURL DriveApiUrlGenerator::GetAppsListUrl() const { return base_url_.Resolve(kDriveV2AppsUrl); } +GURL DriveApiUrlGenerator::GetAppsDeleteUrl(const std::string& app_id) const { + return base_url_.Resolve(base::StringPrintf( + kDriveV2AppsDeleteUrlFormat, net::EscapePath(app_id).c_str())); +} + GURL DriveApiUrlGenerator::GetFilesGetUrl(const std::string& file_id) const { return base_url_.Resolve(kDriveV2FileUrlPrefix + net::EscapePath(file_id)); } |