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

Unified Diff: chrome/browser/background/background_contents_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/background/background_contents_service_factory.cc
diff --git a/chrome/browser/background/background_contents_service_factory.cc b/chrome/browser/background/background_contents_service_factory.cc
index 172ecfe264fe975cc644dcbc9b5cea1edc4fd6cf..a47b4b471f5f464c9bbf04c4c0c20f364e8ce6c6 100644
--- a/chrome/browser/background/background_contents_service_factory.cc
+++ b/chrome/browser/background/background_contents_service_factory.cc
@@ -34,8 +34,8 @@ BackgroundContentsServiceFactory::~BackgroundContentsServiceFactory() {
}
ProfileKeyedService* BackgroundContentsServiceFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- return new BackgroundContentsService(profile,
+ content::BrowserContext* profile) const {
+ return new BackgroundContentsService(static_cast<Profile*>(profile),
CommandLine::ForCurrentProcess());
}
« no previous file with comments | « chrome/browser/background/background_contents_service_factory.h ('k') | chrome/browser/bookmarks/bookmark_model_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698