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

Issue 2660263002: [Media>Session] Pause all players for non-routed frames when receiving PAUSE action (Closed)

Created:
3 years, 10 months ago by Zhiqiang Zhang (Slow)
Modified:
3 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media>Session] Pause all players for non-routed frames when receiving PAUSE action Previously, when a page uses MediaSession API, the PAUSE action is only sent to the frame that is routed, other frames may be still playing media, causing the session to be still active. In this CL, apart from sending the PAUSE action to the frame, we pause the players in all non-routed frames. BUG=685978 Review-Url: https://codereview.chromium.org/2660263002 Cr-Commit-Position: refs/heads/master@{#449622} Committed: https://chromium.googlesource.com/chromium/src/+/ded5aed116f603b4d7e4e5b83abeb25e7f802198

Patch Set 1 #

Patch Set 2 : added comments and tests #

Total comments: 2

Patch Set 3 : nit and style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -4 lines) Patch
M content/browser/media/session/media_session_impl.cc View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M content/browser/media/session/media_session_impl_service_routing_unittest.cc View 1 2 9 chunks +87 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
Zhiqiang Zhang (Slow)
PTAL
3 years, 10 months ago (2017-02-08 15:58:22 UTC) #2
mlamouri (slow - plz ping)
lgtm \o/ https://codereview.chromium.org/2660263002/diff/20001/content/browser/media/session/media_session_impl.cc File content/browser/media/session/media_session_impl.cc (right): https://codereview.chromium.org/2660263002/diff/20001/content/browser/media/session/media_session_impl.cc#newcode635 content/browser/media/session/media_session_impl.cc:635: if (player.observer->GetRenderFrameHost() != rfh_of_routed_service) styte: you need ...
3 years, 10 months ago (2017-02-10 14:17:43 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2660263002/40001
3 years, 10 months ago (2017-02-10 14:25:11 UTC) #6
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2660263002/diff/20001/content/browser/media/session/media_session_impl.cc File content/browser/media/session/media_session_impl.cc (right): https://codereview.chromium.org/2660263002/diff/20001/content/browser/media/session/media_session_impl.cc#newcode635 content/browser/media/session/media_session_impl.cc:635: if (player.observer->GetRenderFrameHost() != rfh_of_routed_service) On 2017/02/10 14:17:43, mlamouri wrote: ...
3 years, 10 months ago (2017-02-10 14:25:58 UTC) #7
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 15:21:19 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/ded5aed116f603b4d7e4e5b83abe...

Powered by Google App Engine
This is Rietveld 408576698