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

Unified Diff: google_apis/drive/drive_api_parser.h

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 | « no previous file | google_apis/drive/drive_api_parser.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.h
diff --git a/google_apis/drive/drive_api_parser.h b/google_apis/drive/drive_api_parser.h
index 6d7110b7cc29af749dbb9dd715fc8e0172ada325..75ff0e7f047d5e1bb778c3518947804ecceb1cfd 100644
--- a/google_apis/drive/drive_api_parser.h
+++ b/google_apis/drive/drive_api_parser.h
@@ -365,8 +365,11 @@ class FileLabels {
// Whether this file has been trashed.
bool is_trashed() const { return trashed_; }
+ // Whether this file is starred by the user.
+ bool is_starred() const { return starred_; }
void set_trashed(bool trashed) { trashed_ = trashed; }
+ void set_starred(bool starred) { starred_ = starred; }
private:
friend class FileResource;
@@ -376,6 +379,7 @@ class FileLabels {
bool Parse(const base::Value& value);
bool trashed_;
+ bool starred_;
};
// ImageMediaMetadata represents image metadata for a file.
« no previous file with comments | « no previous file | google_apis/drive/drive_api_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698