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

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: 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..73ab5bd4734a62faa107fe5a417e591b0c38f21f 100644
--- a/chrome/browser/extensions/chrome_mojo_service_registration.cc
+++ b/chrome/browser/extensions/chrome_mojo_service_registration.cc
@@ -27,10 +27,10 @@ void RegisterChromeServicesForFrame(content::RenderFrameHost* render_frame_host,
DCHECK(render_frame_host);
DCHECK(extension);
+#if defined(ENABLE_MEDIA_ROUTER)
content::ServiceRegistry* service_registry =
Devlin 2015/06/11 16:42:03 nit: Since you're here, mind just inlining this wh
render_frame_host->GetServiceRegistry();
-#if defined(ENABLE_MEDIA_ROUTER)
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
::switches::kEnableMediaRouter)) {
if (extension->permissions_data()->HasAPIPermission(
« 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