Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Unified Diff: chrome/browser/chromeos/display/output_protection_delegate.cc

Issue 1873293002: Report if video capturing meets output protection requirement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « no previous file | chrome/browser/media/capture_access_handler_base.h » ('j') | chrome/browser/media/capture_access_handler_base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698