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

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

Issue 2483843002: Revert of [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Rebase 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/page_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
}
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/page_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698