Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index 7b8480af59be4c5b1c36fac0e1b637f4b99c79b2..4dbb28f09e84cb73db9682bc3a37649d8a3d3c58 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -361,7 +361,6 @@ WebViewImpl::WebViewImpl(WebViewClient* client) |
, m_recreatingGraphicsContext(false) |
, m_geolocationClientProxy(adoptPtr(new GeolocationClientProxy(client ? client->geolocationClient() : 0))) |
, m_userMediaClientImpl(this) |
- , m_midiClientProxy(adoptPtr(new MIDIClientProxy(client ? client->webMIDIClient() : 0))) |
, m_flingModifier(0) |
, m_flingSourceDevice(false) |
, m_fullscreenController(FullscreenController::create(this)) |
@@ -387,7 +386,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client) |
m_page = adoptPtr(new Page(pageClients)); |
provideUserMediaTo(*m_page, &m_userMediaClientImpl); |
MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); |
- provideMIDITo(*m_page, m_midiClientProxy.get()); |
+ provideMIDITo(*m_page, MIDIClientProxy::create(client ? client->webMIDIClient() : 0)); |
#if ENABLE(INPUT_SPEECH) |
provideSpeechInputTo(*m_page, SpeechInputClientImpl::create(client)); |
#endif |