Index: chrome/browser/extensions/chrome_mojo_service_registration.cc |
diff --git a/chrome/browser/extensions/chrome_mojo_service_registration.cc b/chrome/browser/extensions/chrome_mojo_service_registration.cc |
index 11a478342aa5705d1ca275e08f83c108c725c57b..dc6651b0242b06ed490aa02ab8e82d62e59562c9 100644 |
--- a/chrome/browser/extensions/chrome_mojo_service_registration.cc |
+++ b/chrome/browser/extensions/chrome_mojo_service_registration.cc |
@@ -27,15 +27,12 @@ void RegisterChromeServicesForFrame(content::RenderFrameHost* render_frame_host, |
DCHECK(render_frame_host); |
DCHECK(extension); |
- content::ServiceRegistry* service_registry = |
- render_frame_host->GetServiceRegistry(); |
- |
#if defined(ENABLE_MEDIA_ROUTER) |
if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
::switches::kEnableMediaRouter)) { |
if (extension->permissions_data()->HasAPIPermission( |
APIPermission::kMediaRouterPrivate)) { |
- service_registry->AddService(base::Bind( |
+ render_frame_host->GetServiceRegistry()->AddService(base::Bind( |
media_router::MediaRouterMojoImpl::BindToRequest, extension->id(), |
render_frame_host->GetProcess()->GetBrowserContext())); |
} |