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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 896673003: Propagate audible state from player to the containing tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: 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) {

Powered by Google App Engine
This is Rietveld 408576698