Index: google_apis/drive/drive_api_parser.cc |
diff --git a/google_apis/drive/drive_api_parser.cc b/google_apis/drive/drive_api_parser.cc |
index c22070eb458e5dd2a1c8c484cdcf6bfe0fe53945..f3ef9488c4b0466daa9ff47e61a178b6bb5830da 100644 |
--- a/google_apis/drive/drive_api_parser.cc |
+++ b/google_apis/drive/drive_api_parser.cc |
@@ -147,6 +147,7 @@ const char kModificationDate[] = "modificationDate"; |
const char kModifiedDate[] = "modifiedDate"; |
const char kLastViewedByMeDate[] = "lastViewedByMeDate"; |
const char kSharedWithMeDate[] = "sharedWithMeDate"; |
+const char kDownloadUrl[] = "downloadUrl"; |
const char kMd5Checksum[] = "md5Checksum"; |
const char kFileSize[] = "fileSize"; |
const char kAlternateLink[] = "alternateLink"; |
@@ -460,6 +461,8 @@ void FileResource::RegisterJSONConverter( |
&FileResource::shared_with_me_date_, |
&util::GetTimeFromString); |
converter->RegisterBoolField(kShared, &FileResource::shared_); |
+ converter->RegisterCustomField<GURL>( |
+ kDownloadUrl, &FileResource::download_url_, GetGURLFromString); |
converter->RegisterStringField(kMd5Checksum, &FileResource::md5_checksum_); |
converter->RegisterCustomField<int64>(kFileSize, |
&FileResource::file_size_, |