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

Unified Diff: content/renderer/media/media_stream_impl.cc

Issue 10177008: Shift media_stream::StreamOptions to align with the new getUserMedia spec (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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
Index: content/renderer/media/media_stream_impl.cc
diff --git a/content/renderer/media/media_stream_impl.cc b/content/renderer/media/media_stream_impl.cc
index ee4af5d16268008b0d497cf1dc9c35ea61442282..71e395196090292bb6a6d6b4ecaa91186625e5bc 100644
--- a/content/renderer/media/media_stream_impl.cc
+++ b/content/renderer/media/media_stream_impl.cc
@@ -168,10 +168,7 @@ void MediaStreamImpl::requestUserMedia(
int request_id = next_request_id_++;
bool audio = user_media_request.audio();
- media_stream::StreamOptions::VideoOption video_option =
- media_stream::StreamOptions::kNoCamera;
- if (user_media_request.video())
- video_option = media_stream::StreamOptions::kFacingBoth;
+ bool video = user_media_request.video();
std::string security_origin = UTF16ToUTF8(
user_media_request.securityOrigin().toString());
@@ -188,7 +185,7 @@ void MediaStreamImpl::requestUserMedia(
media_stream_dispatcher_->GenerateStream(
request_id,
AsWeakPtr(),
- media_stream::StreamOptions(audio, video_option),
+ media_stream::StreamOptions(audio, video),
security_origin);
}

Powered by Google App Engine
This is Rietveld 408576698