Index: chrome/test/base/testing_profile.cc |
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc |
index a10f39a81cf2d97573dee41e4dcd87c65b36a1d2..82067b18218d75bcdcf2bfadb239684e533be444 100644 |
--- a/chrome/test/base/testing_profile.cc |
+++ b/chrome/test/base/testing_profile.cc |
@@ -420,12 +420,9 @@ void TestingProfile::CreateBookmarkModel(bool delete_file) { |
} |
} |
-static scoped_refptr<RefcountedProfileKeyedService> BuildWebDataService( |
+static ProfileKeyedService* BuildWebDataService( |
Profile* profile) { |
- WebDataService* web_data_service = new WebDataService(); |
- if (web_data_service) |
- web_data_service->Init(profile->GetPath()); |
- return web_data_service; |
+ return new WebDataServiceWrapper(profile); |
} |
void TestingProfile::CreateWebDataService() { |