Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index 62fa372215ae9470f7480e6e8e28188cdf94091d..4c80ce23839a3bfbf0820dbe0c8f429e4e2fb4b9 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -267,6 +267,7 @@ |
#endif |
#if defined(ENABLE_MEDIA_ROUTER) |
+#include "chrome/browser/media/router/media_router_feature.h" |
#include "chrome/browser/media/router/presentation_service_delegate_impl.h" |
#endif |
@@ -2609,7 +2610,7 @@ content::PresentationServiceDelegate* |
ChromeContentBrowserClient::GetPresentationServiceDelegate( |
content::WebContents* web_contents) { |
#if defined(ENABLE_MEDIA_ROUTER) |
- if (switches::MediaRouterEnabled() && |
+ if (media_router::MediaRouterEnabled() && |
!web_contents->GetBrowserContext()->IsOffTheRecord()) { |
return media_router::PresentationServiceDelegateImpl:: |
GetOrCreateForWebContents(web_contents); |