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

Unified Diff: google_apis/drive/drive_api_parser.h

Issue 2799603002: Process TeamDrive change in change list. (Closed)
Patch Set: Add test for update. Created 3 years, 8 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
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 d45bb56e7771cb9a0c08fbd5ad84ce396ebb6d68..88124a8dd7e953f1121556e36a958ce8dc1d9e0d 100644
--- a/google_apis/drive/drive_api_parser.h
+++ b/google_apis/drive/drive_api_parser.h
@@ -410,8 +410,10 @@ class TeamDriveResource {
// The ID of this Team Drive. The ID is the same as the top-level folder for
// this Team Drive.
+ void set_id(const std::string& id) { id_ = id; }
hashimoto 2017/04/06 10:23:36 Please put this after the getter (i.e. id()).
yamaguchi 2017/04/07 03:57:44 Done.
const std::string& id() const { return id_; }
// The name of this Team Drive.
+ void set_name(const std::string& name) { name_ = name; }
hashimoto 2017/04/06 10:23:37 ditto.
yamaguchi 2017/04/07 03:57:44 Done.
const std::string& name() const { return name_; }
// Capabilities the current user has on this Team Drive.
const TeamDriveCapabilities& capabilities() const { return capabilities_; }
@@ -859,6 +861,9 @@ class ChangeResource {
DCHECK_EQ(TEAM_DRIVE, type_);
return team_drive_id_;
}
+ void set_team_drive_id(const std::string& team_drive_id) {
hashimoto 2017/04/06 10:23:36 Please put this setter next to the other setters (
yamaguchi 2017/04/07 03:57:44 Done.
+ team_drive_id_ = team_drive_id;
+ }
// Returns the time of this modification.
const base::Time& modification_date() const { return modification_date_; }
« components/drive/drive.proto ('K') | « components/drive/resource_metadata_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698