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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Created 4 years, 3 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/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 1c6011b0d55ee92f77906c65d2619f915dddf862..d234c3c1ea813ef576257100fb076e94a33197bb 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1516,8 +1516,11 @@ int RenderProcessHostImpl::VisibleWidgetCount() const {
return visible_widgets_;
}
-void RenderProcessHostImpl::AudioStateChanged() {
+void RenderProcessHostImpl::AudioStateChanged(bool is_audio_active) {
UpdateProcessPriority();
+
+ // Notify the child process of audio state.
+ Send(new ChildProcessMsg_SetAudioPlaying(is_audio_active));
}
bool RenderProcessHostImpl::IsForGuestsOnly() const {

Powered by Google App Engine
This is Rietveld 408576698