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

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

Issue 2613223002: Remove ScopedVector from base::JSONValueConverter (Closed)
Patch Set: 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/metadata_database_index_unittest.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/metadata_database_index_unittest.cc b/chrome/browser/sync_file_system/drive_backend/metadata_database_index_unittest.cc
index 217b592c5f5126f1c467cbd8fb1800e2a88541bd..657807999b7ece55f04b579c6916057b3be4b45f 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database_index_unittest.cc
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database_index_unittest.cc
@@ -54,13 +54,13 @@ std::unique_ptr<DatabaseContents> CreateTestDatabaseContents() {
test_util::CreatePlaceholderTracker(
"unsynced_file_id", kPlaceholderTrackerID, app_root_tracker.get());
- contents->file_metadata.push_back(sync_root_metadata.release());
- contents->file_trackers.push_back(sync_root_tracker.release());
- contents->file_metadata.push_back(app_root_metadata.release());
- contents->file_trackers.push_back(app_root_tracker.release());
- contents->file_metadata.push_back(file_metadata.release());
- contents->file_trackers.push_back(file_tracker.release());
- contents->file_trackers.push_back(placeholder_tracker.release());
+ contents->file_metadata.push_back(std::move(sync_root_metadata));
+ contents->file_trackers.push_back(std::move(sync_root_tracker));
+ contents->file_metadata.push_back(std::move(app_root_metadata));
+ contents->file_trackers.push_back(std::move(app_root_tracker));
+ contents->file_metadata.push_back(std::move(file_metadata));
+ contents->file_trackers.push_back(std::move(file_tracker));
+ contents->file_trackers.push_back(std::move(placeholder_tracker));
return contents;
}

Powered by Google App Engine
This is Rietveld 408576698