| Index: components/search_engines/template_url_service_sync_unittest.cc
|
| diff --git a/components/search_engines/template_url_service_sync_unittest.cc b/components/search_engines/template_url_service_sync_unittest.cc
|
| index 68f373701d92fb03eca6a0794ecffb6cb3a2f3cb..e6981d753c5101ba09b9d470403f0524648d706e 100644
|
| --- a/components/search_engines/template_url_service_sync_unittest.cc
|
| +++ b/components/search_engines/template_url_service_sync_unittest.cc
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #include <stddef.h>
|
| +#include <utility>
|
|
|
| #include "base/macros.h"
|
| #include "base/memory/scoped_ptr.h"
|
| @@ -277,7 +278,7 @@ void TemplateURLServiceSyncTest::TearDown() {
|
|
|
| scoped_ptr<syncer::SyncChangeProcessor>
|
| TemplateURLServiceSyncTest::PassProcessor() {
|
| - return sync_processor_wrapper_.Pass();
|
| + return std::move(sync_processor_wrapper_);
|
| }
|
|
|
| scoped_ptr<syncer::SyncErrorFactory> TemplateURLServiceSyncTest::
|
| @@ -1319,10 +1320,8 @@ TEST_F(TemplateURLServiceSyncTest, MergeTwoClientsBasic) {
|
| scoped_ptr<syncer::SyncChangeProcessorWrapperForTest> delegate_b(
|
| new syncer::SyncChangeProcessorWrapperForTest(model_b()));
|
| model_a()->MergeDataAndStartSyncing(
|
| - syncer::SEARCH_ENGINES,
|
| - model_b()->GetAllSyncData(syncer::SEARCH_ENGINES),
|
| - delegate_b.Pass(),
|
| - CreateAndPassSyncErrorFactory());
|
| + syncer::SEARCH_ENGINES, model_b()->GetAllSyncData(syncer::SEARCH_ENGINES),
|
| + std::move(delegate_b), CreateAndPassSyncErrorFactory());
|
|
|
| // They should be consistent.
|
| AssertEquals(model_a()->GetAllSyncData(syncer::SEARCH_ENGINES),
|
| @@ -1349,10 +1348,8 @@ TEST_F(TemplateURLServiceSyncTest, MergeTwoClientsDupesAndConflicts) {
|
| scoped_ptr<syncer::SyncChangeProcessorWrapperForTest> delegate_b(
|
| new syncer::SyncChangeProcessorWrapperForTest(model_b()));
|
| model_a()->MergeDataAndStartSyncing(
|
| - syncer::SEARCH_ENGINES,
|
| - model_b()->GetAllSyncData(syncer::SEARCH_ENGINES),
|
| - delegate_b.Pass(),
|
| - CreateAndPassSyncErrorFactory());
|
| + syncer::SEARCH_ENGINES, model_b()->GetAllSyncData(syncer::SEARCH_ENGINES),
|
| + std::move(delegate_b), CreateAndPassSyncErrorFactory());
|
|
|
| // They should be consistent.
|
| AssertEquals(model_a()->GetAllSyncData(syncer::SEARCH_ENGINES),
|
|
|