Chromium Code Reviews| 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 0f9113561b6b3e947b78bc6421dd00819f02bfbe..ff5449505945a811bf018788f85e9afbed9c5111 100644 |
| --- a/chrome/browser/chrome_content_browser_client.cc |
| +++ b/chrome/browser/chrome_content_browser_client.cc |
| @@ -256,6 +256,7 @@ |
| #endif |
| #if defined(ENABLE_MEDIA_ROUTER) |
| +#include "chrome/browser/media/router/incognito_presentation_service_delegate.h" |
| #include "chrome/browser/media/router/presentation_service_delegate_impl.h" |
| #endif |
| @@ -2554,10 +2555,14 @@ content::PresentationServiceDelegate* |
| ChromeContentBrowserClient::GetPresentationServiceDelegate( |
| content::WebContents* web_contents) { |
| #if defined(ENABLE_MEDIA_ROUTER) |
| - if (switches::MediaRouterEnabled() && |
| - !web_contents->GetBrowserContext()->IsOffTheRecord()) { |
| - return media_router::PresentationServiceDelegateImpl:: |
| - GetOrCreateForWebContents(web_contents); |
| + if (switches::MediaRouterEnabled()) { |
| + if (web_contents->GetBrowserContext()->IsOffTheRecord()) { |
| + return media_router::IncognitoPresentationServiceDelegate:: |
|
whywhat
2015/09/14 15:20:39
nit: is this an Impl of the PresentationServiceDel
imcheng
2015/09/26 01:21:56
Renamed to ReceiverPresentationServiceDelegateImpl
|
| + GetOrCreateForWebContents(web_contents); |
| + } else { |
| + return media_router::PresentationServiceDelegateImpl:: |
| + GetOrCreateForWebContents(web_contents); |
| + } |
| } |
| #endif |
| return nullptr; |