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

Unified Diff: google_apis/drive/drive_api_parser.cc

Issue 2344113002: Parse 'starred' attribute to FileLables in DriveAPI. (Closed)
Patch Set: Created 4 years, 3 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 | « google_apis/drive/drive_api_parser.h ('k') | google_apis/drive/drive_api_parser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2c4a6f64e455d5d587e59c4702fd6c621ed616ea..5f51164567276d2685ffa3e10c17d73666fc9bf2 100644
--- a/google_apis/drive/drive_api_parser.cc
+++ b/google_apis/drive/drive_api_parser.cc
@@ -154,6 +154,7 @@ const char kImageMediaMetadata[] = "imageMediaMetadata";
const char kShared[] = "shared";
// These 5 flags are defined under |labels|.
const char kLabelTrashed[] = "trashed";
+const char kLabelStarred[] = "starred";
// These 3 flags are defined under |imageMediaMetadata|.
const char kImageMediaMetadataWidth[] = "width";
const char kImageMediaMetadataHeight[] = "height";
@@ -638,7 +639,9 @@ bool ChangeList::Parse(const base::Value& value) {
////////////////////////////////////////////////////////////////////////////////
// FileLabels implementation
-FileLabels::FileLabels() : trashed_(false) {}
+FileLabels::FileLabels()
+ : trashed_(false),
+ starred_(false) {}
FileLabels::~FileLabels() {}
@@ -646,6 +649,7 @@ FileLabels::~FileLabels() {}
void FileLabels::RegisterJSONConverter(
base::JSONValueConverter<FileLabels>* converter) {
converter->RegisterBoolField(kLabelTrashed, &FileLabels::trashed_);
+ converter->RegisterBoolField(kLabelStarred, &FileLabels::starred_);
}
// static
« no previous file with comments | « google_apis/drive/drive_api_parser.h ('k') | google_apis/drive/drive_api_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698