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

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: Fixed MediaSourcePlayerTest compilation. Created 5 years, 10 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 bb0546483a7a9c84bfcbc6a0ef90d87647996021..f7dfab84273d8fd76c3097e31031748ee5c1350a 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2530,7 +2530,11 @@ void WebContentsImpl::InsertCSS(const std::string& css) {
}
bool WebContentsImpl::WasRecentlyAudible() {
+#if defined(ENABLE_BROWSER_CDMS)
Ted C 2015/02/07 00:07:15 or if we don't want to make the method ifdef'd to
Tima Vaisburd 2015/02/07 03:00:23 Yes, I put it under #if defined(ENABLE_BROWSER_
+ 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