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

Unified Diff: chrome/browser/custom_handlers/protocol_handler_registry_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/custom_handlers/protocol_handler_registry_factory.cc
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry_factory.cc b/chrome/browser/custom_handlers/protocol_handler_registry_factory.cc
index eaebd5ed0a3b9cff9a7783d023cdc1c3757c2e2e..e144cd5c576311afe4f7cc735b47d2bb448766b8 100644
--- a/chrome/browser/custom_handlers/protocol_handler_registry_factory.cc
+++ b/chrome/browser/custom_handlers/protocol_handler_registry_factory.cc
@@ -50,9 +50,9 @@ bool ProtocolHandlerRegistryFactory::ServiceIsNULLWhileTesting() const {
}
ProfileKeyedService* ProtocolHandlerRegistryFactory::BuildServiceInstanceFor(
- Profile* profile) const {
+ content::BrowserContext* profile) const {
ProtocolHandlerRegistry* registry = new ProtocolHandlerRegistry(
- profile, new ProtocolHandlerRegistry::Delegate());
+ static_cast<Profile*>(profile), new ProtocolHandlerRegistry::Delegate());
#if defined(OS_CHROMEOS)
// If installing defaults, they must be installed prior calling
« no previous file with comments | « chrome/browser/custom_handlers/protocol_handler_registry_factory.h ('k') | chrome/browser/download/download_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698