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 a5e5044d9a04e4d6bbc54dd54da9ce332e457df7..104f8c63fab5ed61390267d391cd9352ac5a4723 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -3105,7 +3105,12 @@ void WebContentsImpl::MaybeReleasePowerSaveBlockers() { |
void WebContentsImpl::OnMediaPlayingNotification(int64 player_cookie, |
bool has_video, |
- bool has_audio) { |
+ bool has_audio, |
+ bool is_remote) { |
+ // Ignore the videos playing remotely and don't hold the wake lock for the |
+ // screen. |
+ if (is_remote) return; |
+ |
if (has_audio) { |
AddMediaPlayerEntry(player_cookie, &active_audio_players_); |