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

Unified Diff: chrome/browser/sync/profile_sync_service_autofill_unittest.cc

Issue 1165913002: [Cleanup] Used scoped pointers in KeyedServiceFactory's SetTestingFactory functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finish renaming profile -> context Created 5 years, 6 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
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());
}
};
« no previous file with comments | « chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc ('k') | chrome/browser/sync/profile_sync_service_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698