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

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: Addressed Ted's comments and compiled IsAudible() only under OS_ANDROID 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 d32b7cc1dc744a1ad9674bfca7a2f5db2bf6f8e0..3b287ace42520fab72df9231b3d6e342dba278b8 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2493,7 +2493,11 @@ void WebContentsImpl::InsertCSS(const std::string& css) {
}
bool WebContentsImpl::WasRecentlyAudible() {
+#if defined(ENABLE_BROWSER_CDMS) && defined(OS_ANDROID)
no sievers 2015/02/10 01:33:03 Why is there an #ifdef here? Can you put a comment
Tima Vaisburd 2015/02/11 03:34:05 Added a comment, please take a look.
+ 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