Commit db3149c1 authored by Stuart Langley's avatar Stuart Langley Committed by Commit Bot

Pass the team drive id when requesting the file list for a team drive.

Bug: 715355
Change-Id: I6fb41bfb7a60a087f7830c0d6b1addda4188ac85
Reviewed-on: https://chromium-review.googlesource.com/1098578Reviewed-by: default avatarSasha Morrissey <sashab@chromium.org>
Commit-Queue: Stuart Langley <slangley@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567558}
parent 6523304d
......@@ -357,6 +357,7 @@ CancelCallback DriveAPIService::GetAllFileList(
if (team_drive_id.empty()) {
request->set_corpora(google_apis::FilesListCorpora::DEFAULT);
} else {
request->set_team_drive_id(team_drive_id);
request->set_corpora(google_apis::FilesListCorpora::TEAM_DRIVE);
}
return sender_->StartRequestWithAuthRetry(std::move(request));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment