Index: chrome/browser/sync/profile_sync_service_mock.cc |
diff --git a/chrome/browser/sync/profile_sync_service_mock.cc b/chrome/browser/sync/profile_sync_service_mock.cc |
index 343c79348b0485baf40abe529235e223f7b88fa6..9f7c3445c800616f898b245e11d96a6e97cedb2d 100644 |
--- a/chrome/browser/sync/profile_sync_service_mock.cc |
+++ b/chrome/browser/sync/profile_sync_service_mock.cc |
@@ -52,7 +52,8 @@ TestingProfile* ProfileSyncServiceMock::MakeSignedInTestingProfile() { |
} |
// static |
-KeyedService* ProfileSyncServiceMock::BuildMockProfileSyncService( |
+scoped_ptr<KeyedService> ProfileSyncServiceMock::BuildMockProfileSyncService( |
content::BrowserContext* profile) { |
- return new ProfileSyncServiceMock(static_cast<Profile*>(profile)); |
+ return make_scoped_ptr( |
+ new ProfileSyncServiceMock(static_cast<Profile*>(profile))); |
} |