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

Unified Diff: chrome/browser/extensions/chrome_mojo_service_registration.cc

Issue 1177973005: Correct ENABLE_MEDIA_ROUTER defines to fix compilation without it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit fix. Created 5 years, 6 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 | « no previous file | chrome/browser/extensions/component_extensions_whitelist/whitelist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()));
}
« no previous file with comments | « no previous file | chrome/browser/extensions/component_extensions_whitelist/whitelist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698