Index: chrome/browser/chromeos/display/output_protection_delegate.cc |
diff --git a/chrome/browser/chromeos/display/output_protection_delegate.cc b/chrome/browser/chromeos/display/output_protection_delegate.cc |
index af8c711f68a8604cdd17ff99e287448caae12a30..0452ac613fdf4a42a40d4c66d1bf878bd64a4e6f 100644 |
--- a/chrome/browser/chromeos/display/output_protection_delegate.cc |
+++ b/chrome/browser/chromeos/display/output_protection_delegate.cc |
@@ -133,14 +133,11 @@ void OutputProtectionDelegate::QueryStatusComplete( |
uint32_t link_mask = response.link_mask; |
// If we successfully retrieved the device level status, check for capturers. |
if (response.success) { |
- const bool capture_detected = |
- // Check for tab capture on the current tab. |
- content::WebContents::FromRenderFrameHost(rfh)->GetCapturerCount() > |
- 0 || |
- // Check for desktop capture. |
+ const bool insecure_capture_detected = |
MediaCaptureDevicesDispatcher::GetInstance() |
- ->IsDesktopCaptureInProgress(); |
- if (capture_detected) |
+ ->IsInsecureCapturingInProgress(render_process_id_, |
+ render_frame_id_); |
+ if (insecure_capture_detected) |
link_mask |= ui::DISPLAY_CONNECTION_TYPE_NETWORK; |
} |