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

Unified Diff: google_apis/drive/files_list_request_runner.cc

Issue 2894513003: Fetch files shared in Team Drives by specifying allTeamDrives corpora. (Closed)
Patch Set: Rename parameter variables to scope Created 3 years, 7 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: google_apis/drive/files_list_request_runner.cc
diff --git a/google_apis/drive/files_list_request_runner.cc b/google_apis/drive/files_list_request_runner.cc
index a7f29d6ea07bcec7b07eb8a3c9303918ceacbbfe..a6777dd4ad91bcb276be16d110853b728768d49c 100644
--- a/google_apis/drive/files_list_request_runner.cc
+++ b/google_apis/drive/files_list_request_runner.cc
@@ -29,6 +29,7 @@ FilesListRequestRunner::~FilesListRequestRunner() {
CancelCallback FilesListRequestRunner::CreateAndStartWithSizeBackoff(
int max_results,
+ const FilesListScope& scope,
const std::string& q,
const std::string& fields,
const FileListCallback& callback) {
@@ -39,8 +40,8 @@ CancelCallback FilesListRequestRunner::CreateAndStartWithSizeBackoff(
base::MakeUnique<drive::FilesListRequest>(
request_sender_, url_generator_,
base::Bind(&FilesListRequestRunner::OnCompleted,
- weak_ptr_factory_.GetWeakPtr(), max_results, q, fields,
- callback, base::Owned(cancel_callback)));
+ weak_ptr_factory_.GetWeakPtr(), max_results, scope, q,
+ fields, callback, base::Owned(cancel_callback)));
request->set_max_results(max_results);
request->set_q(q);
request->set_fields(fields);
@@ -61,6 +62,7 @@ void FilesListRequestRunner::OnCancel(base::Closure* cancel_callback) {
}
void FilesListRequestRunner::OnCompleted(int max_results,
+ const FilesListScope& scope,
const std::string& q,
const std::string& fields,
const FileListCallback& callback,
@@ -74,7 +76,7 @@ void FilesListRequestRunner::OnCompleted(int max_results,
"Drive.FilesListRequestRunner.ApiErrorCode", error);
if (error == google_apis::DRIVE_RESPONSE_TOO_LARGE && max_results > 1) {
- CreateAndStartWithSizeBackoff(max_results / 2, q, fields, callback);
+ CreateAndStartWithSizeBackoff(max_results / 2, scope, q, fields, callback);
return;
}

Powered by Google App Engine
This is Rietveld 408576698