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

Unified Diff: content/public/renderer/media_stream_utils.cc

Issue 2339193002: Wip - cl for implemening VideoTrackSource::ApplyConstraints(constraints, VideoTrack) and adopt safe…
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/media/canvas_capture_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/media_stream_utils.cc
diff --git a/content/public/renderer/media_stream_utils.cc b/content/public/renderer/media_stream_utils.cc
index d05b08f5c86fe5281f613565d16aac927f6e71ae..0cf38569e97abf12aa03d9c03af5e551ebb0ccec 100644
--- a/content/public/renderer/media_stream_utils.cc
+++ b/content/public/renderer/media_stream_utils.cc
@@ -45,12 +45,8 @@ bool AddVideoTrackToMediaStream(
track_id, is_remote);
// Takes ownership of |media_stream_source|.
web_media_stream_source.setExtraData(media_stream_source);
-
- blink::WebMediaConstraints constraints;
- constraints.initialize();
web_media_stream->addTrack(MediaStreamVideoTrack::CreateVideoTrack(
- media_stream_source, constraints,
- MediaStreamVideoSource::ConstraintsCallback(), true));
+ media_stream_source));
return true;
}
« no previous file with comments | « no previous file | content/renderer/media/canvas_capture_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698