| Index: chrome/test/data/extensions/hangout_services_test.html
|
| diff --git a/chrome/test/data/extensions/hangout_services_test.html b/chrome/test/data/extensions/hangout_services_test.html
|
| index ed1fcc57e422686fc584fc4b0a4cffecec00ef5c..8b9b9a73d6f9b3d6d13e382ac37066838f540bc3 100644
|
| --- a/chrome/test/data/extensions/hangout_services_test.html
|
| +++ b/chrome/test/data/extensions/hangout_services_test.html
|
| @@ -20,7 +20,7 @@
|
| // Populates UI elements with initial contents.
|
| function populate() {
|
| populateSinks();
|
| - MediaStreamTrack.getSources(populateSources);
|
| + navigator.mediaDevices.enumerateDevices().then(populateSources);
|
| }
|
|
|
| // Populates the select box with information on all sinks and the
|
| @@ -42,14 +42,14 @@
|
| });
|
| }
|
|
|
| -function populateSources(sources) {
|
| +function populateSources(devices) {
|
| var select = document.getElementById('selectSource');
|
| - for (var i = 0; i < sources.length; ++i) {
|
| - var source = sources[i];
|
| - if (source.kind == 'audio') {
|
| + for (var i = 0; i < devices.length; ++i) {
|
| + var device = devices[i];
|
| + if (device.kind == 'audioinput') {
|
| var option = document.createElement('option');
|
| - option.value = source.id;
|
| - option.text = source.label + ' (' + source.id + ')';
|
| + option.value = device.deviceId;
|
| + option.text = device.label + ' (' + device.deviceId + ')';
|
| select.add(option);
|
| }
|
| }
|
|
|