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 117a7d435a5e0a3d82caaf81721844e3e148ff5e..2fad29b93d0031f156c48746a227c3fa5869277b 100644 |
| --- a/chrome/browser/chrome_content_browser_client.cc |
| +++ b/chrome/browser/chrome_content_browser_client.cc |
| @@ -240,6 +240,10 @@ |
| #include "chrome/browser/media/webrtc_logging_handler_host.h" |
| #endif |
| +#if defined(ENABLE_MEDIA_ROUTER) |
| +#include "chrome/browser/media/router/presentation_service_delegate_impl.h" |
| +#endif |
| + |
| using base::FileDescriptor; |
| using blink::WebWindowFeatures; |
| using content::AccessTokenStore; |
| @@ -2361,6 +2365,20 @@ void ChromeContentBrowserClient::OpenURL( |
| #endif |
| } |
| +content::PresentationServiceDelegate* |
| +ChromeContentBrowserClient::GetPresentationServiceDelegate( |
| + content::WebContents* web_contents) { |
| +#if defined(ENABLE_MEDIA_ROUTER) |
| + if (switches::MediaRouterEnabled()) { |
| + return media_router::PresentationServiceDelegateImpl:: |
| + GetOrCreateForWebContents(web_contents); |
| + } |
| + return nullptr; |
| +#else |
| + return nullptr; |
| +#endif |
|
mark a. foltz
2015/06/05 22:22:19
Remove duplicate line by putting #endif before ret
mark a. foltz
2015/06/05 22:22:19
#endif // defined(ENABLE_MEDIA_ROUTER)
haibinlu
2015/06/06 02:37:33
Done.
haibinlu
2015/06/06 02:37:33
#if is very close by.
|
| +} |
| + |
| void ChromeContentBrowserClient::RecordURLMetric(const std::string& metric, |
| const GURL& url) { |
| if (url.is_valid()) { |