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

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

Issue 12871006: Second try at splitting WebDataService (minus ownership changes) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head for commit. 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_browser.gypi ('k') | no next file » | 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 a10f39a81cf2d97573dee41e4dcd87c65b36a1d2..5142f3e7202bac5d6288eef90a94f471c26a2e64 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -422,9 +422,11 @@ void TestingProfile::CreateBookmarkModel(bool delete_file) {
static scoped_refptr<RefcountedProfileKeyedService> 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(profile->GetPath());
+ web_data_service->Init(path);
return web_data_service;
}
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698