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

Unified Diff: components/sync_driver/generic_change_processor_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
« no previous file with comments | « components/sync_driver/fake_generic_change_processor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/generic_change_processor_unittest.cc
diff --git a/components/sync_driver/generic_change_processor_unittest.cc b/components/sync_driver/generic_change_processor_unittest.cc
index 96088aa9b9b517f72dfe019b449914744629f417..f3c2ac8345dbad2a6e9a9d31fb22393cd13e9069 100644
--- a/components/sync_driver/generic_change_processor_unittest.cc
+++ b/components/sync_driver/generic_change_processor_unittest.cc
@@ -156,8 +156,8 @@ class SyncGenericChangeProcessorTest : public testing::Test {
// Take a pointer and trust that GenericChangeProcessor does not prematurely
// destroy it.
mock_attachment_service_ = mock_attachment_service.get();
- sync_factory_.reset(new MockSyncApiComponentFactory(
- mock_attachment_service.PassAs<syncer::AttachmentService>()));
+ sync_factory_.reset(
+ new MockSyncApiComponentFactory(mock_attachment_service.Pass()));
change_processor_.reset(
new GenericChangeProcessor(type,
&data_type_error_handler_,
« no previous file with comments | « components/sync_driver/fake_generic_change_processor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698