Chromium Code Reviews| 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 e79bf0decca7285d8673d9767bc6f870ba3c6c7d..6ec6e13ae381c7f96a1d90a313485f7e2a0b5cb9 100644 |
| --- a/google_apis/drive/drive_api_url_generator.cc |
| +++ b/google_apis/drive/drive_api_url_generator.cc |
| @@ -42,6 +42,7 @@ const char kDriveV2TeamDrivesUrl[] = "drive/v2/teamdrives"; |
| const char kIncludeTeamDriveItems[] = "includeTeamDriveItems"; |
| const char kSupportsTeamDrives[] = "supportsTeamDrives"; |
| +const char kCorpora[] = "corpora"; |
| // apps.delete and file.authorize API is exposed through a special endpoint |
| // v2internal that is accessible only by the official API key for Chrome. |
| @@ -191,6 +192,8 @@ GURL DriveApiUrlGenerator::GetFilesListUrl(int max_results, |
| url = net::AppendOrReplaceQueryParameter(url, kSupportsTeamDrives, "true"); |
| url = net::AppendOrReplaceQueryParameter(url, kIncludeTeamDriveItems, |
| "true"); |
| + url = net::AppendOrReplaceQueryParameter(url, kCorpora, |
| + "default,allTeamDrives"); |
|
hashimoto
2017/05/19 11:14:26
1. Is allTeamDrives the best option we can use her
yamaguchi
2017/05/24 01:32:44
Revised it to have a parameter for specifying the
|
| } |
| // maxResults is 100 by default. |
| if (max_results != 100) { |