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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 12851008: Create a common base class for all the webdatas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on trunk and comments Created 7 years, 9 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/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() {

Powered by Google App Engine
This is Rietveld 408576698