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

Unified Diff: google_apis/drive/drive_api_url_generator.cc

Issue 2854653004: Add parameter to issue URLs for querying a ChangeList of a Team Drive. (Closed)
Patch Set: rebase Created 3 years, 8 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 | « google_apis/drive/drive_api_url_generator.h ('k') | google_apis/drive/drive_api_url_generator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/drive_api_url_generator.cc
diff --git a/google_apis/drive/drive_api_url_generator.cc b/google_apis/drive/drive_api_url_generator.cc
index 1e09309704a3b6adb382ae40653bf0f405b6e04f..e79bf0decca7285d8673d9767bc6f870ba3c6c7d 100644
--- a/google_apis/drive/drive_api_url_generator.cc
+++ b/google_apis/drive/drive_api_url_generator.cc
@@ -223,10 +223,12 @@ GURL DriveApiUrlGenerator::GetFilesTrashUrl(const std::string& file_id) const {
return url;
}
-GURL DriveApiUrlGenerator::GetChangesListUrl(bool include_deleted,
- int max_results,
- const std::string& page_token,
- int64_t start_change_id) const {
+GURL DriveApiUrlGenerator::GetChangesListUrl(
+ bool include_deleted,
+ int max_results,
+ const std::string& page_token,
+ int64_t start_change_id,
+ const std::string& team_drive_id) const {
DCHECK_GE(start_change_id, 0);
GURL url = base_url_.Resolve(kDriveV2ChangelistUrl);
@@ -234,6 +236,10 @@ GURL DriveApiUrlGenerator::GetChangesListUrl(bool include_deleted,
url = net::AppendOrReplaceQueryParameter(url, kSupportsTeamDrives, "true");
url = net::AppendOrReplaceQueryParameter(url, kIncludeTeamDriveItems,
"true");
+ if (!team_drive_id.empty()) {
+ url =
+ net::AppendOrReplaceQueryParameter(url, "teamDriveId", team_drive_id);
+ }
}
// includeDeleted is "true" by default.
if (!include_deleted)
« no previous file with comments | « google_apis/drive/drive_api_url_generator.h ('k') | google_apis/drive/drive_api_url_generator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698