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 2700dbc2dd94391b8b58fe00bd34c1218ce11ff2..babb4cdc5c16aa737548cca079e136ee146d6905 100644 |
--- a/google_apis/drive/drive_api_parser.h |
+++ b/google_apis/drive/drive_api_parser.h |
@@ -601,13 +601,11 @@ class FileList { |
// Returns a set of files in this list. |
const ScopedVector<FileResource>& items() const { return items_; } |
+ ScopedVector<FileResource>* mutable_items() { return &items_; } |
void set_next_link(const GURL& next_link) { |
next_link_ = next_link; |
} |
- void set_items(ScopedVector<FileResource> items) { |
- items_ = items.Pass(); |
- } |
private: |
friend class DriveAPIParserTest; |
@@ -715,6 +713,7 @@ class ChangeList { |
// Returns a set of changes in this list. |
const ScopedVector<ChangeResource>& items() const { return items_; } |
+ ScopedVector<ChangeResource>* mutable_items() { return &items_; } |
void set_next_link(const GURL& next_link) { |
next_link_ = next_link; |
@@ -722,9 +721,6 @@ class ChangeList { |
void set_largest_change_id(int64 largest_change_id) { |
largest_change_id_ = largest_change_id; |
} |
- void set_items(ScopedVector<ChangeResource> items) { |
- items_ = items.Pass(); |
- } |
private: |
friend class DriveAPIParserTest; |