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

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

Issue 2496173003: Communicate audio state to renderer process on Android. (Closed)
Patch Set: Make power_level_monitoring_available private Created 4 years, 1 month 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 367951acc517b810c354a23f9e2958c869927969..45eaa25bf8da5fdc63ee87daa04dd9712fcf805d 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1318,11 +1318,10 @@ void WebContentsImpl::NotifyNavigationStateChanged(
GetOuterWebContents()->NotifyNavigationStateChanged(changed_flags);
}
-void WebContentsImpl::OnAudioStateChanged(bool is_audio_playing) {
- SendPageMessage(
- new PageMsg_AudioStateChanged(MSG_ROUTING_NONE, is_audio_playing));
+void WebContentsImpl::OnAudioStateChanged(bool is_audible) {
+ SendPageMessage(new PageMsg_AudioStateChanged(MSG_ROUTING_NONE, is_audible));
- // Notification for UI updates in response to the changed muting state.
+ // Notification for UI updates in response to the changed audio state.
NotifyNavigationStateChanged(INVALIDATE_TYPE_TAB);
}
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/browser/web_contents/web_contents_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698