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 11172c31d3b9c4f0fc6bcffb7a69d687a4238cc9..5f7253580ba5551fa6a3f4140f483487e6cfc9d1 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -1259,7 +1259,8 @@ void WebContentsImpl::SetAudioMuted(bool mute) { |
for (auto& observer : observers_) |
observer.DidUpdateAudioMutingState(mute); |
- OnAudioStateChanged(!mute && audio_stream_monitor_.IsCurrentlyAudible()); |
+ // Notification for UI updates in response to the changed muting state. |
+ NotifyNavigationStateChanged(INVALIDATE_TYPE_TAB); |
} |
bool WebContentsImpl::IsConnectedToBluetoothDevice() const { |
@@ -1319,14 +1320,6 @@ void WebContentsImpl::NotifyNavigationStateChanged( |
GetOuterWebContents()->NotifyNavigationStateChanged(changed_flags); |
} |
-void WebContentsImpl::OnAudioStateChanged(bool is_audio_playing) { |
- SendPageMessage( |
- new PageMsg_AudioStateChanged(MSG_ROUTING_NONE, is_audio_playing)); |
- |
- // Notification for UI updates in response to the changed muting state. |
- NotifyNavigationStateChanged(INVALIDATE_TYPE_TAB); |
-} |
- |
base::TimeTicks WebContentsImpl::GetLastActiveTime() const { |
return last_active_time_; |
} |