Don't collect 'other tracks' in HTMLMediaElement::configureTextTracks

After having processed 'subtitles', 'captions', 'descriptions' and
'chapters' tracks, there's only 'metadata' tracks left (no more kinds are
currently defined). This means that the 'otherTracks' set will always be
empty. Remove it an add an assert.

Also take the opportunity to rename the various methods involved to match
the match the names of the spec. algorithms they implement.

 configureTextTracks -> honorUserPreferencesForAutomaticTextTrackSelection
 configureTextTrackGroup -> performAutomaticTextTrackSelection
 configureMetadataTextTrackGroup -> enableDefaultMetadataTextTracks

Review URL: https://codereview.chromium.org/891733002

git-svn-id: svn://svn.chromium.org/blink/trunk@189262 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed
tree: 6ca3054a4b35c32c1373222ac3bb588d0141d1e1
  1. third_party/