Index: third_party/WebKit/Source/modules/mediastream/MediaStream.cpp |
diff --git a/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp b/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp |
index 8545812f12f9fc25e4d28a70034a9ff69581c707..89b1cac4ee308a9ed153653a19be3c32509fe1f7 100644 |
--- a/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp |
+++ b/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp |
@@ -340,7 +340,7 @@ void MediaStream::addRemoteTrack(MediaStreamComponent* component) |
track->registerMediaStream(this); |
m_descriptor->addComponent(component); |
- scheduleDispatchEvent(MediaStreamTrackEvent::create(EventTypeNames::addtrack, false, false, track)); |
+ scheduleDispatchEvent(MediaStreamTrackEvent::create(EventTypeNames::addtrack, track)); |
if (!active() && !track->ended()) { |
m_descriptor->setActive(true); |
@@ -379,7 +379,7 @@ void MediaStream::removeRemoteTrack(MediaStreamComponent* component) |
MediaStreamTrack* track = (*tracks)[index]; |
track->unregisterMediaStream(this); |
tracks->remove(index); |
- scheduleDispatchEvent(MediaStreamTrackEvent::create(EventTypeNames::removetrack, false, false, track)); |
+ scheduleDispatchEvent(MediaStreamTrackEvent::create(EventTypeNames::removetrack, track)); |
if (active() && emptyOrOnlyEndedTracks()) { |
m_descriptor->setActive(false); |