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

Issue 868113005: Move automatic text track selection code to AutomaticTrackSelection helper (Closed)

Created:
5 years, 10 months ago by fs
Modified:
5 years, 10 months ago
Reviewers:
philipj_slow
CC:
blink-reviews, nessy, philipj_slow, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, blink-reviews-html_chromium.org, vcarbune.chromium
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Move automatic text track selection code to AutomaticTrackSelection helper Move the body of HTMLMediaElement::honorUserPreferencesForAutomaticTextTrackSelection and support functions to a helper class (AutomaticTrackSelection). A straight-forward code movement with the only difference being that the helper uses the a configuration object set up from HTMLMediaElement state. Also moves HTMLMediaElement::markCaptionAndSubtitleTracksAsUnconfigured closer to it user. BUG=321654 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189971

Patch Set 1 #

Total comments: 7

Patch Set 2 : Drop WTF_LOG to fix compilation #

Patch Set 3 : Pass TextTrackList as parameter instead. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -203 lines) Patch
M Source/core/core.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 chunk +0 lines, -23 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 5 chunks +29 lines, -180 lines 0 comments Download
A Source/core/html/track/AutomaticTrackSelection.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A Source/core/html/track/AutomaticTrackSelection.cpp View 1 2 1 chunk +205 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
fs
5 years, 10 months ago (2015-02-10 17:36:19 UTC) #2
philipj_slow
LGTM % sad bots and some things about state https://codereview.chromium.org/868113005/diff/1/Source/core/html/track/AutomaticTrackSelection.cpp File Source/core/html/track/AutomaticTrackSelection.cpp (right): https://codereview.chromium.org/868113005/diff/1/Source/core/html/track/AutomaticTrackSelection.cpp#newcode71 Source/core/html/track/AutomaticTrackSelection.cpp:71: ...
5 years, 10 months ago (2015-02-11 03:00:24 UTC) #3
fs
https://codereview.chromium.org/868113005/diff/1/Source/core/html/track/AutomaticTrackSelection.cpp File Source/core/html/track/AutomaticTrackSelection.cpp (right): https://codereview.chromium.org/868113005/diff/1/Source/core/html/track/AutomaticTrackSelection.cpp#newcode71 Source/core/html/track/AutomaticTrackSelection.cpp:71: WTF_LOG(Media, "TrackSelection::configureTextTrackGroup(%p, %d)", this, group.kind); On 2015/02/11 03:00:24, philipj_UTC7 ...
5 years, 10 months ago (2015-02-11 10:02:26 UTC) #5
philipj_slow
lgtm https://codereview.chromium.org/868113005/diff/1/Source/core/html/track/AutomaticTrackSelection.h File Source/core/html/track/AutomaticTrackSelection.h (right): https://codereview.chromium.org/868113005/diff/1/Source/core/html/track/AutomaticTrackSelection.h#newcode35 Source/core/html/track/AutomaticTrackSelection.h:35: RawPtrWillBeMember<TextTrackList> m_textTracks; On 2015/02/11 10:02:26, fs wrote: > ...
5 years, 10 months ago (2015-02-11 10:29:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/868113005/40001
5 years, 10 months ago (2015-02-11 10:31:05 UTC) #8
commit-bot: I haz the power
5 years, 10 months ago (2015-02-11 12:34:08 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189971

Powered by Google App Engine
This is Rietveld 408576698