Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index ff003ddb3c808f2ecd7ce45abb86207620d9d2bd..9611af15a82fe50475299a8a91dc3089cd1b6752 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -2484,7 +2484,11 @@ void WebContentsImpl::InsertCSS(const std::string& css) { |
} |
bool WebContentsImpl::WasRecentlyAudible() { |
+#if defined(ENABLE_BROWSER_CDMS) |
+ return media_web_contents_observer_->IsAudible(); |
+#else |
return audio_stream_monitor_.WasRecentlyAudible(); |
+#endif |
} |
void WebContentsImpl::GetManifest(const GetManifestCallback& callback) { |