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

Unified Diff: chrome/browser/drive/drive_api_service.cc

Issue 306073007: [Drive] Fetch id field of the parents in FileResource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/drive/drive_api_service.cc
diff --git a/chrome/browser/drive/drive_api_service.cc b/chrome/browser/drive/drive_api_service.cc
index e49ba16596beaaf85c6523b81d307c3ddc21a2c5..bb3a4a144a5de62aeb0dafec3d78a4630c6c22fa 100644
--- a/chrome/browser/drive/drive_api_service.cc
+++ b/chrome/browser/drive/drive_api_service.cc
@@ -105,7 +105,7 @@ const char kFileResourceFields[] =
"kind,id,title,createdDate,sharedWithMeDate,mimeType,"
"md5Checksum,fileSize,labels/trashed,imageMediaMetadata/width,"
"imageMediaMetadata/height,imageMediaMetadata/rotation,etag,"
- "parents/parentLink,alternateLink,"
+ "parents(id,parentLink),alternateLink,"
"modifiedDate,lastViewedByMeDate,shared";
const char kFileResourceOpenWithLinksFields[] =
"kind,id,openWithLinks/*";
@@ -113,14 +113,15 @@ const char kFileListFields[] =
"kind,items(kind,id,title,createdDate,sharedWithMeDate,"
"mimeType,md5Checksum,fileSize,labels/trashed,imageMediaMetadata/width,"
"imageMediaMetadata/height,imageMediaMetadata/rotation,etag,"
- "parents/parentLink,alternateLink,"
+ "parents(id,parentLink),alternateLink,"
"modifiedDate,lastViewedByMeDate,shared),nextLink";
const char kChangeListFields[] =
"kind,items(file(kind,id,title,createdDate,sharedWithMeDate,"
"mimeType,md5Checksum,fileSize,labels/trashed,imageMediaMetadata/width,"
"imageMediaMetadata/height,imageMediaMetadata/rotation,etag,"
- "parents/parentLink,alternateLink,modifiedDate,lastViewedByMeDate,shared),"
- "deleted,id,fileId,modificationDate),nextLink,largestChangeId";
+ "parents(id,parentLink),alternateLink,modifiedDate,"
+ "lastViewedByMeDate,shared),deleted,id,fileId,modificationDate),nextLink,"
+ "largestChangeId";
// Converts the FileResource value to ResourceEntry and runs |callback| on the
// UI thread.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698