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

Unified Diff: chrome/browser/chromeos/file_manager/file_tasks_unittest.cc

Issue 23979003: Replace swap with Pass() on setters in drive_api_parser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « no previous file | chrome/browser/google_apis/drive_api_parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/file_manager/file_tasks_unittest.cc
diff --git a/chrome/browser/chromeos/file_manager/file_tasks_unittest.cc b/chrome/browser/chromeos/file_manager/file_tasks_unittest.cc
index e273f3b0d685631ee86375d5cb449040a5dbf496..ff644f732188e2e3f136e6db5b52e9414f5813f8 100644
--- a/chrome/browser/chromeos/file_manager/file_tasks_unittest.cc
+++ b/chrome/browser/chromeos/file_manager/file_tasks_unittest.cc
@@ -191,7 +191,7 @@ TEST(FileManagerFileTasksTest, FindDriveAppTasks) {
ScopedVector<std::string> foo_mime_types;
foo_mime_types.push_back(new std::string("text/plain"));
foo_mime_types.push_back(new std::string("text/html"));
- foo_app->set_primary_mimetypes(&foo_mime_types);
+ foo_app->set_primary_mimetypes(foo_mime_types.Pass());
// Bar.app can only handle "text/plain".
scoped_ptr<google_apis::AppResource> bar_app(new google_apis::AppResource);
@@ -202,14 +202,14 @@ TEST(FileManagerFileTasksTest, FindDriveAppTasks) {
bar_app->set_object_type("bar_object_type");
ScopedVector<std::string> bar_mime_types;
bar_mime_types.push_back(new std::string("text/plain"));
- bar_app->set_primary_mimetypes(&bar_mime_types);
+ bar_app->set_primary_mimetypes(bar_mime_types.Pass());
// Prepare DriveAppRegistry from Foo.app and Bar.app.
ScopedVector<google_apis::AppResource> app_resources;
app_resources.push_back(foo_app.release());
app_resources.push_back(bar_app.release());
google_apis::AppList app_list;
- app_list.set_items(&app_resources);
+ app_list.set_items(app_resources.Pass());
drive::DriveAppRegistry drive_app_registry(NULL);
drive_app_registry.UpdateFromAppList(app_list);
« no previous file with comments | « no previous file | chrome/browser/google_apis/drive_api_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698