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

Unified Diff: chrome/browser/google_apis/drive_api_parser.h

Issue 23627008: Replace FileResource::set_labels with mutable_labels (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/drive_api_parser.h
diff --git a/chrome/browser/google_apis/drive_api_parser.h b/chrome/browser/google_apis/drive_api_parser.h
index 7c23f24b1f2bc40479da160c152284cdb971d412..140834ed69c27316fc0fd63ed9d14bfebc516b1d 100644
--- a/chrome/browser/google_apis/drive_api_parser.h
+++ b/chrome/browser/google_apis/drive_api_parser.h
@@ -567,8 +567,8 @@ class FileResource {
void set_mime_type(const std::string& mime_type) {
mime_type_ = mime_type;
}
- void set_labels(const FileLabels& labels) {
- labels_ = labels;
+ FileLabels* mutable_labels() {
+ return &labels_;
}
void set_created_date(const base::Time& created_date) {
created_date_ = created_date;
« 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