Index: content/browser/media/midi_browsertest.cc |
diff --git a/content/browser/media/midi_browsertest.cc b/content/browser/media/midi_browsertest.cc |
index c8d7e2c7c6d4000dc84d39e1a0aa304b9f59c615..ed69c0e74344906aab182f112f60c49900eefd8c 100644 |
--- a/content/browser/media/midi_browsertest.cc |
+++ b/content/browser/media/midi_browsertest.cc |
@@ -19,7 +19,7 @@ IN_PROC_BROWSER_TEST_F(MidiBrowserTest, RequestMIDIAccess) { |
bool result; |
NavigateToURL(shell(), GURL("about:blank")); |
ASSERT_TRUE(ExecuteScriptAndExtractBool( |
- shell()->web_contents(), |
+ shell(), |
"navigator.requestMIDIAccess()" |
" .then(" |
" _ => domAutomationController.send(true)," |
@@ -33,7 +33,7 @@ IN_PROC_BROWSER_TEST_F(MidiBrowserTest, SubscribeAll) { |
bool result; |
NavigateToURL(shell(), GURL("about:blank")); |
ASSERT_TRUE(ExecuteScriptAndExtractBool( |
- shell()->web_contents(), |
+ shell(), |
"navigator.requestMIDIAccess()" |
" .then(" |
" e => { e.inputs.forEach(i => i.onmidimessage = console.log);" |