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

Unified Diff: google_apis/drive/drive_api_parser.h

Issue 2799603002: Process TeamDrive change in change list. (Closed)
Patch Set: Remove unnecessary return value, as the TeamDriveResource conversion always succeeds. 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
« no previous file with comments | « components/drive/resource_entry_conversion_unittest.cc ('k') | google_apis/drive/drive_switches.h » ('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 d45bb56e7771cb9a0c08fbd5ad84ce396ebb6d68..477ccfb4f7fbd1aa8a6ecaeba835008af852d2c4 100644
--- a/google_apis/drive/drive_api_parser.h
+++ b/google_apis/drive/drive_api_parser.h
@@ -411,8 +411,10 @@ class TeamDriveResource {
// The ID of this Team Drive. The ID is the same as the top-level folder for
// this Team Drive.
const std::string& id() const { return id_; }
+ void set_id(const std::string& id) { id_ = id; }
// The name of this Team Drive.
const std::string& name() const { return name_; }
+ void set_name(const std::string& name) { name_ = name; }
// Capabilities the current user has on this Team Drive.
const TeamDriveCapabilities& capabilities() const { return capabilities_; }
@@ -875,6 +877,9 @@ class ChangeResource {
void set_team_drive(std::unique_ptr<TeamDriveResource> team_drive) {
team_drive_ = std::move(team_drive);
}
+ void set_team_drive_id(const std::string& team_drive_id) {
+ team_drive_id_ = team_drive_id;
+ }
void set_modification_date(const base::Time& modification_date) {
modification_date_ = modification_date;
}
« no previous file with comments | « components/drive/resource_entry_conversion_unittest.cc ('k') | google_apis/drive/drive_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698