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

Unified Diff: chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc

Issue 2613223002: Remove ScopedVector from base::JSONValueConverter (Closed)
Patch Set: Add a TODO Created 3 years, 11 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: chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc b/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
index f578c43a8f93becd830ddcdff5f91ad1ecb04fe8..b3af159b00d085292a76997c3500af3d16c086d9 100644
--- a/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
+++ b/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
@@ -676,11 +676,8 @@ void RemoteToLocalSyncer::DidListFolderContent(
}
children->reserve(children->size() + file_list->items().size());
- for (ScopedVector<google_apis::FileResource>::const_iterator itr =
- file_list->items().begin();
- itr != file_list->items().end();
- ++itr) {
- children->push_back((*itr)->file_id());
+ for (const auto& file_resource : file_list->items()) {
+ children->push_back(file_resource->file_id());
}
if (!file_list->next_link().is_empty()) {

Powered by Google App Engine
This is Rietveld 408576698