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

Unified Diff: google_apis/drive/drive_api_parser.h

Issue 309463002: drive: Change DriveServiceInterface::GetChangeList's callback type to ChangeListCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « chrome/browser/sync_file_system/drive_backend_v1/api_util.cc ('k') | no next file » | 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 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;
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend_v1/api_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698