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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 2814843005: media: Add incognito EME playback UMA (Closed)
Patch Set: fix test Created 3 years, 8 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: media/blink/webmediaplayer_impl.cc
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
index 7c10f9fe3981b98b65561a2e49d7f3a4fe8f9ca8..b805f604f370de520a688dc2d365dc3d2f378b23 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -1090,6 +1090,8 @@ void WebMediaPlayerImpl::OnCdmAttached(bool success) {
// If the CDM is set from the constructor there is no promise
// (|set_cdm_result_|) to fulfill.
if (success) {
+ media_log_->SetBooleanProperty("has_cdm", true);
+
// This will release the previously attached CDM (if any).
cdm_ = std::move(pending_cdm_);
if (set_cdm_result_) {

Powered by Google App Engine
This is Rietveld 408576698