| Index: chrome/browser/sync/profile_sync_service_autofill_unittest.cc
|
| diff --git a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
|
| index 802bde3f19101d86cd4b72da4390343fa255ce8a..6951424c1dfbb6ec9836c198bec19d0e610541ba 100644
|
| --- a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
|
| +++ b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
|
| @@ -337,10 +337,10 @@ class WebDataServiceFake : public AutofillWebDataService {
|
| DISALLOW_COPY_AND_ASSIGN(WebDataServiceFake);
|
| };
|
|
|
| -KeyedService* BuildMockWebDataServiceWrapper(content::BrowserContext* profile) {
|
| - return new MockWebDataServiceWrapper(
|
| - new WebDataServiceFake(),
|
| - new TokenWebDataServiceFake());
|
| +scoped_ptr<KeyedService> BuildMockWebDataServiceWrapper(
|
| + content::BrowserContext* profile) {
|
| + return make_scoped_ptr(new MockWebDataServiceWrapper(
|
| + new WebDataServiceFake(), new TokenWebDataServiceFake()));
|
| }
|
|
|
| ACTION_P(MakeAutocompleteSyncComponents, wds) {
|
| @@ -425,8 +425,8 @@ class MockPersonalDataManager : public PersonalDataManager {
|
| MOCK_METHOD0(LoadCreditCards, void());
|
| MOCK_METHOD0(Refresh, void());
|
|
|
| - static KeyedService* Build(content::BrowserContext* profile) {
|
| - return new MockPersonalDataManager();
|
| + static scoped_ptr<KeyedService> Build(content::BrowserContext* profile) {
|
| + return make_scoped_ptr(new MockPersonalDataManager());
|
| }
|
| };
|
|
|
|
|