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

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

Issue 12805007: wd5-syncableServices for try only (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wd5-syncableServices with debug test fix 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome_frame/test/delete_chrome_history_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 5142f3e7202bac5d6288eef90a94f471c26a2e64..82067b18218d75bcdcf2bfadb239684e533be444 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -420,14 +420,9 @@ void TestingProfile::CreateBookmarkModel(bool delete_file) {
}
}
-static scoped_refptr<RefcountedProfileKeyedService> BuildWebDataService(
+static ProfileKeyedService* BuildWebDataService(
Profile* profile) {
- base::FilePath path = profile->GetPath();
- path = path.Append(chrome::kWebDataFilename);
- WebDataService* web_data_service = new WebDataService();
- if (web_data_service)
- web_data_service->Init(path);
- return web_data_service;
+ return new WebDataServiceWrapper(profile);
}
void TestingProfile::CreateWebDataService() {
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome_frame/test/delete_chrome_history_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698