Index: third_party/WebKit/Source/core/html/track/TrackBase.cpp |
diff --git a/third_party/WebKit/Source/core/html/track/TrackBase.cpp b/third_party/WebKit/Source/core/html/track/TrackBase.cpp |
index dd216230a755b167d8273ec19222e6161e09fddf..3db71a7d979ee8eae1fbd8f42a2d77b600b506ae 100644 |
--- a/third_party/WebKit/Source/core/html/track/TrackBase.cpp |
+++ b/third_party/WebKit/Source/core/html/track/TrackBase.cpp |
@@ -40,9 +40,10 @@ static WebMediaPlayer::TrackId nextTrackId() |
return ++next; |
} |
-TrackBase::TrackBase(WebMediaPlayer::TrackType type, const AtomicString& label, const AtomicString& language, const String& id) |
+TrackBase::TrackBase(WebMediaPlayer::TrackType type, const AtomicString& kind, const AtomicString& label, const AtomicString& language, const String& id) |
: m_trackId(nextTrackId()) |
, m_type(type) |
+ , m_kind(kind) |
, m_label(label) |
, m_language(language) |
, m_id(id) |
@@ -67,10 +68,7 @@ DEFINE_TRACE(TrackBase) |
void TrackBase::setKind(const AtomicString& kind) |
{ |
- if (isValidKind(kind)) |
- m_kind = kind; |
- else |
- m_kind = invalidValueDefaultKind(); |
+ m_kind = kind; |
} |
} // namespace blink |