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

Unified Diff: components/drive/service/drive_api_service.cc

Issue 2748053005: Parse TeamDrive resource inside ChangeList. (Closed)
Patch Set: Default the type field to UNKNOWN as it's not causing new test failures. Created 3 years, 9 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: components/drive/service/drive_api_service.cc
diff --git a/components/drive/service/drive_api_service.cc b/components/drive/service/drive_api_service.cc
index 189baa3b217df139225cb0c5dc1fb382f12333ab..c47180d72c1dbddc399379016d8d03a4777fa186 100644
--- a/components/drive/service/drive_api_service.cc
+++ b/components/drive/service/drive_api_service.cc
@@ -117,12 +117,14 @@ const char kFileListFields[] =
"parents(id,parentLink),alternateLink,"
"modifiedDate,lastViewedByMeDate,shared),nextLink";
const char kChangeListFields[] =
- "kind,items(file(kind,id,title,createdDate,sharedWithMeDate,"
+ "kind,items(type,file(kind,id,title,createdDate,sharedWithMeDate,"
"mimeType,md5Checksum,fileSize,labels/trashed,labels/starred,"
"imageMediaMetadata/width,"
"imageMediaMetadata/height,imageMediaMetadata/rotation,etag,"
"parents(id,parentLink),alternateLink,modifiedDate,"
- "lastViewedByMeDate,shared),deleted,id,fileId,modificationDate),nextLink,"
+ "lastViewedByMeDate,shared),teamDrive(kind,id,name,capabilities),"
+ "teamDriveId,"
+ "deleted,id,fileId,modificationDate),nextLink,"
"largestChangeId";
void ExtractOpenUrlAndRun(const std::string& app_id,
« no previous file with comments | « components/drive/resource_entry_conversion_unittest.cc ('k') | components/drive/service/fake_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698