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

Unified Diff: google_apis/drive/drive_api_requests.cc

Issue 2894513003: Fetch files shared in Team Drives by specifying allTeamDrives corpora. (Closed)
Patch Set: Make comment style consistent with existing one Created 3 years, 6 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_requests.h ('k') | google_apis/drive/drive_api_url_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/drive_api_requests.cc
diff --git a/google_apis/drive/drive_api_requests.cc b/google_apis/drive/drive_api_requests.cc
index 0c3c3e1d792139363e31b02bbc12a24c7d4521f7..e9799c6278ebdd44d921f6094a7615999e40bdc5 100644
--- a/google_apis/drive/drive_api_requests.cc
+++ b/google_apis/drive/drive_api_requests.cc
@@ -557,20 +557,21 @@ GURL TeamDriveListRequest::GetURLInternal() const {
//============================= FilesListRequest =============================
-FilesListRequest::FilesListRequest(
- RequestSender* sender,
- const DriveApiUrlGenerator& url_generator,
- const FileListCallback& callback)
+FilesListRequest::FilesListRequest(RequestSender* sender,
+ const DriveApiUrlGenerator& url_generator,
+ const FileListCallback& callback)
: DriveApiDataRequest<FileList>(sender, callback),
url_generator_(url_generator),
- max_results_(100) {
+ max_results_(100),
+ corpora_(FilesListCorpora::DEFAULT) {
DCHECK(!callback.is_null());
}
FilesListRequest::~FilesListRequest() {}
GURL FilesListRequest::GetURLInternal() const {
- return url_generator_.GetFilesListUrl(max_results_, page_token_, q_);
+ return url_generator_.GetFilesListUrl(max_results_, page_token_, corpora_,
+ team_drive_id_, q_);
}
//======================== FilesListNextPageRequest =========================
« no previous file with comments | « google_apis/drive/drive_api_requests.h ('k') | google_apis/drive/drive_api_url_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698