Index: content/renderer/media/user_media_client_impl.cc |
diff --git a/content/renderer/media/user_media_client_impl.cc b/content/renderer/media/user_media_client_impl.cc |
index 15e096b6469d9b1bc061d68be7d41c99bb18666c..faf827456d79393dea5a25196afdbacb2a66065c 100644 |
--- a/content/renderer/media/user_media_client_impl.cc |
+++ b/content/renderer/media/user_media_client_impl.cc |
@@ -69,8 +69,11 @@ void CopyBlinkRequestToStreamControls(const blink::WebUserMediaRequest& request, |
// TODO(hta): Get alternatives only mentioned in advanced array. |
CopyVector(audio_basic.deviceId.ideal(), |
&controls->audio.alternate_device_ids); |
- if (!audio_basic.hotwordEnabled.matches(false)) |
- controls->hotword_enabled = true; |
+ |
+ for (const auto& audio_advanced : request.audioConstraints().advanced()) { |
+ if (!audio_advanced.hotwordEnabled.matches(false)) |
+ controls->hotword_enabled = true; |
hta - Chromium
2016/02/26 11:35:44
1) put a break in this loop.
2) instead use
if
Anand Mistry (off Chromium)
2016/02/29 02:10:07
Done.
|
+ } |
} |
if (!request.videoConstraints().isNull()) { |
const blink::WebMediaTrackConstraintSet& video_basic = |