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

Unified Diff: extensions/test/data/web_view/media_access/check/media_check_guest.html

Issue 2471803002: Remove MediaStreamTrack.getSources(). (Closed)
Patch Set: Fix platform-specific expectations file Created 4 years, 1 month 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: extensions/test/data/web_view/media_access/check/media_check_guest.html
diff --git a/extensions/test/data/web_view/media_access/check/media_check_guest.html b/extensions/test/data/web_view/media_access/check/media_check_guest.html
index 07164c0df4b991302d9dbd2a0cd18df8000b150b..85d72761bd7b228452fc116f8709a0d9751ec51f 100644
--- a/extensions/test/data/web_view/media_access/check/media_check_guest.html
+++ b/extensions/test/data/web_view/media_access/check/media_check_guest.html
@@ -6,7 +6,7 @@
<html>
<head>
<script type="text/javascript">
- // A guest that requests media sources, which in turn checks for media
+ // A guest that requests media devices, which in turn checks for media
// access permission.
// Notifies the embedder when done via post message. Note that the
// embedder has to initiate a postMessage first so that guest has a
@@ -23,7 +23,7 @@
notifyEmbedder(JSON.stringify(['got-sources']));
};
var startTest = function() {
- MediaStreamTrack.getSources(onSourceInfo);
+ navigator.mediaDevices.enumerateDevices().then(onSourceInfo);
};
var onPostMessageReceived = function(e) {
var data = JSON.parse(e.data);

Powered by Google App Engine
This is Rietveld 408576698