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

Unified Diff: content/browser/media/audio_stream_monitor.cc

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Rebased Created 4 years, 2 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/media/audio_stream_monitor.cc
diff --git a/content/browser/media/audio_stream_monitor.cc b/content/browser/media/audio_stream_monitor.cc
index b19e82ff462721faa426802e6eeb471422e52616..36e11030eb105138d231d53c7af5a0280d4ce3e4 100644
--- a/content/browser/media/audio_stream_monitor.cc
+++ b/content/browser/media/audio_stream_monitor.cc
@@ -151,7 +151,7 @@ void AudioStreamMonitor::Poll() {
}
if (is_audible_ != was_audible)
- web_contents_->NotifyNavigationStateChanged(INVALIDATE_TYPE_TAB);
+ web_contents_->OnAudioStateChanged(is_audible_);
}
void AudioStreamMonitor::MaybeToggle() {

Powered by Google App Engine
This is Rietveld 408576698