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

Unified Diff: chrome/browser/webdata/web_data_service_factory.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 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/webdata/web_data_service_factory.cc
diff --git a/chrome/browser/webdata/web_data_service_factory.cc b/chrome/browser/webdata/web_data_service_factory.cc
index c07d5fb9ca1cbfc8f3549f4218bccf1551427dcf..3ac44328c358f16da865290213ebad4fe0d54373 100644
--- a/chrome/browser/webdata/web_data_service_factory.cc
+++ b/chrome/browser/webdata/web_data_service_factory.cc
@@ -186,9 +186,9 @@ bool WebDataServiceFactory::ServiceRedirectedInIncognito() const {
return true;
}
-ProfileKeyedService*
-WebDataServiceFactory::BuildServiceInstanceFor(Profile* profile) const {
- return new WebDataServiceWrapper(profile);
+ProfileKeyedService* WebDataServiceFactory::BuildServiceInstanceFor(
+ content::BrowserContext* profile) const {
+ return new WebDataServiceWrapper(static_cast<Profile*>(profile));
}
bool WebDataServiceFactory::ServiceIsNULLWhileTesting() const {
« no previous file with comments | « chrome/browser/webdata/web_data_service_factory.h ('k') | chrome/test/base/chrome_render_view_host_test_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698