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 91ed7f8413ef30785be0303d1d39f422e229f396..c00315e2e4d59348e04411057f49ac2847cba135 100644 |
--- a/chrome/browser/sync/profile_sync_service_startup_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_service_startup_unittest.cc |
@@ -99,7 +99,8 @@ class ProfileSyncServiceStartupTest : public testing::Test { |
static KeyedService* BuildService(content::BrowserContext* browser_context) { |
Profile* profile = static_cast<Profile*>(browser_context); |
return new ProfileSyncService( |
- new ProfileSyncComponentsFactoryMock(), |
+ scoped_ptr<ProfileSyncComponentsFactory>( |
+ new ProfileSyncComponentsFactoryMock()), |
profile, |
make_scoped_ptr(new SupervisedUserSigninManagerWrapper( |
profile, SigninManagerFactory::GetForProfile(profile))), |
@@ -183,7 +184,8 @@ class ProfileSyncServiceStartupCrosTest : public ProfileSyncServiceStartupTest { |
ProfileOAuth2TokenServiceFactory::GetForProfile(profile); |
EXPECT_FALSE(signin->GetAuthenticatedUsername().empty()); |
return new ProfileSyncService( |
- new ProfileSyncComponentsFactoryMock(), |
+ scoped_ptr<ProfileSyncComponentsFactory>( |
+ new ProfileSyncComponentsFactoryMock()), |
profile, |
make_scoped_ptr(new SupervisedUserSigninManagerWrapper(profile, |
signin)), |