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

Unified Diff: chrome/browser/sync/profile_sync_service_startup_unittest.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/browser/sync/profile_sync_service_startup_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_startup_unittest.cc b/chrome/browser/sync/profile_sync_service_startup_unittest.cc
index 4d670c79f43b9bb24d56ffef90bd2731af4c8ed1..0f59dc6f3601e5f3a32e287f88a497ce3a10db7c 100644
--- a/chrome/browser/sync/profile_sync_service_startup_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_startup_unittest.cc
@@ -165,7 +165,7 @@ class ProfileSyncServiceStartupTest : public testing::Test {
sync_client->SetSyncApiComponentFactoryForTesting(
make_scoped_ptr(new SyncApiComponentFactoryMock()));
return make_scoped_ptr(new TestProfileSyncServiceNoBackup(
- sync_client.Pass(), profile,
+ std::move(sync_client), profile,
make_scoped_ptr(new SigninManagerWrapper(
SigninManagerFactory::GetForProfile(profile))),
ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
@@ -272,7 +272,7 @@ class ProfileSyncServiceStartupCrosTest : public ProfileSyncServiceStartupTest {
sync_client->SetSyncApiComponentFactoryForTesting(
make_scoped_ptr(new SyncApiComponentFactoryMock()));
return make_scoped_ptr(new TestProfileSyncServiceNoBackup(
- sync_client.Pass(), profile,
+ std::move(sync_client), profile,
make_scoped_ptr(new SigninManagerWrapper(signin)), oauth2_token_service,
browser_sync::AUTO_START));
}

Powered by Google App Engine
This is Rietveld 408576698