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

Unified Diff: content/browser/renderer_host/media/media_stream_device_settings.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: rebase 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
« no previous file with comments | « no previous file | content/browser/renderer_host/media/media_stream_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/media_stream_device_settings.cc
diff --git a/content/browser/renderer_host/media/media_stream_device_settings.cc b/content/browser/renderer_host/media/media_stream_device_settings.cc
index af13453e59aefdc03a69c5eae72092fffe8bbe98..3e65642d861db117ae476c723c935aff3eedf0b2 100644
--- a/content/browser/renderer_host/media/media_stream_device_settings.cc
+++ b/content/browser/renderer_host/media/media_stream_device_settings.cc
@@ -153,7 +153,7 @@ void MediaStreamDeviceSettings::AvailableDevices(
if (request->options.audio) {
num_media_requests++;
}
- if (request->options.video_option != StreamOptions::kNoCamera) {
+ if (request->options.video) {
num_media_requests++;
}
@@ -277,7 +277,7 @@ std::string MediaStreamDeviceSettings::FindReadyRequestForView(
// request.
continue;
}
- if (request->options.video_option != StreamOptions::kNoCamera &&
+ if (request->options.video &&
request->devices_full[
content::MEDIA_STREAM_DEVICE_TYPE_VIDEO_CAPTURE].empty()) {
// Video requested, but no devices enumerated yet. Continue to next
« no previous file with comments | « no previous file | content/browser/renderer_host/media/media_stream_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698