Index: chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc |
diff --git a/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc b/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc |
index ea0b1d9f953e980f0ebd04366cabacc4081e2f8d..f016ae4015c992353b7dca95efb47b5dc87c31d8 100644 |
--- a/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc |
@@ -106,12 +106,13 @@ class ProfileSyncComponentsFactoryImplTest : public testing::Test { |
ProfileOAuth2TokenService* token_service = |
ProfileOAuth2TokenServiceFactory::GetForProfile(profile_.get()); |
scoped_ptr<ProfileSyncService> pss(new ProfileSyncService( |
- new ProfileSyncComponentsFactoryImpl( |
- profile_.get(), |
- command_line_.get(), |
- ProfileSyncService::GetSyncServiceURL(*command_line_), |
- token_service, |
- profile_->GetRequestContext()), |
+ scoped_ptr<ProfileSyncComponentsFactory>( |
+ new ProfileSyncComponentsFactoryImpl( |
+ profile_.get(), |
+ command_line_.get(), |
+ ProfileSyncService::GetSyncServiceURL(*command_line_), |
+ token_service, |
+ profile_->GetRequestContext())), |
profile_.get(), |
make_scoped_ptr<SupervisedUserSigninManagerWrapper>(NULL), |
token_service, |
@@ -133,12 +134,13 @@ TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDefault) { |
ProfileOAuth2TokenService* token_service = |
ProfileOAuth2TokenServiceFactory::GetForProfile(profile_.get()); |
scoped_ptr<ProfileSyncService> pss(new ProfileSyncService( |
- new ProfileSyncComponentsFactoryImpl( |
- profile_.get(), |
- command_line_.get(), |
- ProfileSyncService::GetSyncServiceURL(*command_line_), |
- token_service, |
- profile_->GetRequestContext()), |
+ scoped_ptr<ProfileSyncComponentsFactory>( |
+ new ProfileSyncComponentsFactoryImpl( |
+ profile_.get(), |
+ command_line_.get(), |
+ ProfileSyncService::GetSyncServiceURL(*command_line_), |
+ token_service, |
+ profile_->GetRequestContext())), |
profile_.get(), |
make_scoped_ptr<SupervisedUserSigninManagerWrapper>(NULL), |
token_service, |