<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebRTC: Update the MediaStream API"
   href="https://bugs.webkit.org/show_bug.cgi?id=146313#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebRTC: Update the MediaStream API"
   href="https://bugs.webkit.org/show_bug.cgi?id=146313">bug 146313</a>
              from <span class="vcard"><a class="email" href="mailto:adam.bergkvist&#64;ericsson.com" title="Adam Bergkvist &lt;adam.bergkvist&#64;ericsson.com&gt;"> <span class="fn">Adam Bergkvist</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=146313#c2">comment #2</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=255723&amp;action=diff" name="attach_255723" title="Proposed patch">attachment 255723</a> <a href="attachment.cgi?id=255723&amp;action=edit" title="Proposed patch">[details]</a></span>
&gt; Proposed patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=255723&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=255723&amp;action=review</a>
&gt; 
&gt; &gt; Source/WebCore/platform/mediastream/MediaStreamPrivate.cpp:90
&gt; &gt; +    Vector&lt;RefPtr&lt;MediaStreamTrackPrivate&gt;&gt; tracks;
&gt; &gt; +    tracks.reserveCapacity(m_trackSet.size());
&gt; &gt;  
&gt; &gt; -    unsigned providedTracksSize = audioPrivateTracks.size() + videoPrivateTracks.size();
&gt; &gt; -    unsigned tracksSize = m_audioPrivateTracks.size() + m_videoPrivateTracks.size();
&gt; &gt; +    for (auto&amp; track : m_trackSet.values())
&gt; &gt; +        tracks.append(track);
&gt; &gt;  
&gt; &gt; -    if (providedTracksSize &gt; 0 &amp;&amp; tracksSize &gt; 0)
&gt; &gt; -        m_isActive = true;
&gt; &gt; +    return tracks;
&gt; 
&gt; Nit: you could use copyValuesToVector here.</span >

Fixed.

<span class="quote">&gt; &gt; Source/WebCore/platform/mediastream/MediaStreamPrivate.h:65
&gt; &gt; +    enum NotifyClientOption { NotifyClient, DontNotifyClient };
&gt; 
&gt; This should be &quot;enum class&quot;.</span >

Fixed (fixed other enum as well)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>