| Index: chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc
|
| diff --git a/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc b/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc
|
| index 1897125cf0832fec417e6ebdcedec62f0e218942..604b13a6da236045ba0eec7075213eb39499c2b4 100644
|
| --- a/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc
|
| +++ b/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc
|
| @@ -170,13 +170,17 @@ int32_t PepperFlashDRMHost::OnHostMsgGetHmonitor(
|
| int32_t PepperFlashDRMHost::OnHostMsgMonitorIsExternal(
|
| ppapi::host::HostMessageContext* context) {
|
| int64_t monitor_id = monitor_finder_->GetMonitor();
|
| - if (monitor_id) {
|
| - // TODO(bbudge) get information about whether monitor is external.
|
| - context->reply_msg =
|
| - PpapiPluginMsg_FlashDRM_MonitorIsExternalReply(PP_FALSE);
|
| - return PP_OK;
|
| - }
|
| - return PP_ERROR_FAILED;
|
| + if (!monitor_id)
|
| + return PP_ERROR_FAILED;
|
| +
|
| + PP_Bool is_external = PP_FALSE;
|
| +#if defined(OS_MACOSX)
|
| + if (!MonitorFinder::IsMonitorBuiltIn(monitor_id))
|
| + is_external = PP_TRUE;
|
| +#endif
|
| + context->reply_msg =
|
| + PpapiPluginMsg_FlashDRM_MonitorIsExternalReply(is_external);
|
| + return PP_OK;
|
| }
|
|
|
| void PepperFlashDRMHost::GotDeviceID(
|
|
|