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

Unified Diff: chrome/test/base/testing_profile_manager.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/test/base/testing_profile_manager.cc
diff --git a/chrome/test/base/testing_profile_manager.cc b/chrome/test/base/testing_profile_manager.cc
index 54029005310401bef7f34ea85904f27cbd13832c..2d876eda5c76fd8caac3ec49fc7c3ddcc660039f 100644
--- a/chrome/test/base/testing_profile_manager.cc
+++ b/chrome/test/base/testing_profile_manager.cc
@@ -5,6 +5,7 @@
#include "chrome/test/base/testing_profile_manager.h"
#include <stddef.h>
+#include <utility>
#include "base/memory/ref_counted.h"
#include "base/strings/utf_string_conversions.h"
@@ -83,7 +84,7 @@ TestingProfile* TestingProfileManager::CreateTestingProfile(
// Create the profile and register it.
TestingProfile::Builder builder;
builder.SetPath(profile_path);
- builder.SetPrefService(prefs.Pass());
+ builder.SetPrefService(std::move(prefs));
builder.SetSupervisedUserId(supervised_user_id);
for (TestingProfile::TestingFactories::const_iterator it = factories.begin();

Powered by Google App Engine
This is Rietveld 408576698