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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html

Issue 665213002: Implement navigator.requestMediaKeySystemAccess() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add comment Created 6 years, 2 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 | LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html b/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html
index 53527527816f2551546a9c0f9dd2972ac54fe4e4..b958aaf357a7ee84305846bcd13fe4e9cfd46db5 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-async-creation-with-gc.html
@@ -15,7 +15,9 @@
setInterval(asyncGC, 0);
var mediaKeySession;
- MediaKeys.create('org.w3.clearkey').then(function(mediaKeys) {
+ navigator.requestMediaKeySystemAccess('org.w3.clearkey').then(function(access) {
+ return access.createMediaKeys();
+ }).then(function(mediaKeys) {
var initDataType = getInitDataType();
mediaKeySession = mediaKeys.createSession();
return mediaKeySession.generateRequest(initDataType, getInitData(initDataType));
« no previous file with comments | « no previous file | LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698