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

Issue 2612293003: [MediaSession] Don't reset metadata and actions when the session goes uncontrollable (Closed)

Created:
3 years, 11 months ago by Zhiqiang Zhang (Slow)
Modified:
3 years, 11 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

[MediaSession] Don't reset metadata and actions when the session goes uncontrollable When switching media element src, MediaSession goes uncontrollable and then controllable. The current MediaSession routing algorithm resets metadata and controls when the session goes uncontrollable. However this resetting is unnecessary but will cause notification flickering as well. This CL removes the unnecessary reset signal. BUG=678945 Review-Url: https://codereview.chromium.org/2612293003 Cr-Commit-Position: refs/heads/master@{#442708} Committed: https://chromium.googlesource.com/chromium/src/+/f64ef58c0294ed6ad7468c9ca7155a6e4430d8f1

Patch Set 1 #

Patch Set 2 : added tests #

Patch Set 3 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -18 lines) Patch
M content/browser/media/session/media_session_impl.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/media/session/media_session_impl_browsertest.cc View 1 5 chunks +5 lines, -14 lines 0 comments Download
M content/browser/media/session/media_session_impl_service_routing_unittest.cc View 1 5 chunks +116 lines, -0 lines 0 comments Download
A content/browser/media/session/mock_media_session_observer.h View 1 1 chunk +23 lines, -0 lines 0 comments Download
A content/browser/media/session/mock_media_session_observer.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
Zhiqiang Zhang (Slow)
3 years, 11 months ago (2017-01-06 16:38:45 UTC) #3
whywhat
Does it mean that if the page sets src to "" or an unsupported format, ...
3 years, 11 months ago (2017-01-09 15:59:20 UTC) #4
Zhiqiang Zhang (Slow)
On 2017/01/09 15:59:20, whywhat wrote: > Does it mean that if the page sets src ...
3 years, 11 months ago (2017-01-09 16:17:41 UTC) #5
Zhiqiang Zhang (Slow)
+mlamouri (I know Anton has some urgent work to do)
3 years, 11 months ago (2017-01-10 13:06:37 UTC) #7
mlamouri (slow - plz ping)
On 2017/01/09 at 16:17:41, zqzhang wrote: > On 2017/01/09 15:59:20, whywhat wrote: > > Does ...
3 years, 11 months ago (2017-01-10 14:25:20 UTC) #8
Zhiqiang Zhang (Slow)
On 2017/01/10 14:25:20, mlamouri wrote: > My understanding is that there will be no noticeable ...
3 years, 11 months ago (2017-01-10 14:34:02 UTC) #9
whywhat
lgtm
3 years, 11 months ago (2017-01-10 20:16:18 UTC) #10
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/2612293003/40001
3 years, 11 months ago (2017-01-10 20:53:35 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 22:18:30 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/f64ef58c0294ed6ad7468c9ca715...

Powered by Google App Engine
This is Rietveld 408576698