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

Unified Diff: content/browser/renderer_host/media/audio_renderer_host.cc

Issue 2310343002: Defer suspend events on Android when audio is active. (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
« no previous file with comments | « base/power_monitor/power_monitor.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/audio_renderer_host.cc
diff --git a/content/browser/renderer_host/media/audio_renderer_host.cc b/content/browser/renderer_host/media/audio_renderer_host.cc
index 7fb28e91920f574d3b1ff3add3a9a02523a233b8..9ae0adbc3f964870cb9b378d0ec09b4fee3f6ee2 100644
--- a/content/browser/renderer_host/media/audio_renderer_host.cc
+++ b/content/browser/renderer_host/media/audio_renderer_host.cc
@@ -790,6 +790,8 @@ void AudioRendererHost::UpdateNumPlayingStreams(AudioEntry* entry,
}
bool AudioRendererHost::HasActiveAudio() {
+ LOG(ERROR) << __func__ << " : "
+ << (!base::AtomicRefCountIsZero(&num_playing_streams_));
return !base::AtomicRefCountIsZero(&num_playing_streams_);
}
« no previous file with comments | « base/power_monitor/power_monitor.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698