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

Unified Diff: components/search_engines/template_url_service_sync_unittest.cc

Issue 655143002: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: 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 0b3f8827e5aa29dd664b8905599cdcae8c8f064d..a6323db2e913ce1d175bebd24c580e7979dbc662 100644
--- a/components/search_engines/template_url_service_sync_unittest.cc
+++ b/components/search_engines/template_url_service_sync_unittest.cc
@@ -245,7 +245,7 @@ void TemplateURLServiceSyncTest::TearDown() {
scoped_ptr<syncer::SyncChangeProcessor>
TemplateURLServiceSyncTest::PassProcessor() {
- return sync_processor_wrapper_.PassAs<syncer::SyncChangeProcessor>();
+ return sync_processor_wrapper_.Pass();
}
scoped_ptr<syncer::SyncErrorFactory> TemplateURLServiceSyncTest::
@@ -1286,9 +1286,10 @@ TEST_F(TemplateURLServiceSyncTest, MergeTwoClientsBasic) {
// has no data.
scoped_ptr<syncer::SyncChangeProcessorWrapperForTest> delegate_b(
new syncer::SyncChangeProcessorWrapperForTest(model_b()));
- model_a()->MergeDataAndStartSyncing(syncer::SEARCH_ENGINES,
+ model_a()->MergeDataAndStartSyncing(
+ syncer::SEARCH_ENGINES,
model_b()->GetAllSyncData(syncer::SEARCH_ENGINES),
- delegate_b.PassAs<syncer::SyncChangeProcessor>(),
+ delegate_b.Pass(),
CreateAndPassSyncErrorFactory());
// They should be consistent.
@@ -1315,9 +1316,10 @@ TEST_F(TemplateURLServiceSyncTest, MergeTwoClientsDupesAndConflicts) {
// Merge A and B.
scoped_ptr<syncer::SyncChangeProcessorWrapperForTest> delegate_b(
new syncer::SyncChangeProcessorWrapperForTest(model_b()));
- model_a()->MergeDataAndStartSyncing(syncer::SEARCH_ENGINES,
+ model_a()->MergeDataAndStartSyncing(
+ syncer::SEARCH_ENGINES,
model_b()->GetAllSyncData(syncer::SEARCH_ENGINES),
- delegate_b.PassAs<syncer::SyncChangeProcessor>(),
+ delegate_b.Pass(),
CreateAndPassSyncErrorFactory());
// They should be consistent.
« no previous file with comments | « components/proximity_auth/bluetooth_connection_unittest.cc ('k') | components/sync_driver/fake_generic_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698