Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index b19b1a5a5160d3649668ffcadd2cdcd9c975dbb0..2bd4e7f7be44c78b0c7795ce479b04f4efc1fa36 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -152,6 +152,7 @@ |
#include "modules/notifications/NotificationController.h" |
#include "modules/notifications/NotificationPermissionClient.h" |
#include "modules/screen_orientation/ScreenOrientationController.h" |
+#include "modules/speech/SpeechRecognitionController.h" |
#include "platform/TraceEvent.h" |
#include "platform/UserGestureIndicator.h" |
#include "platform/clipboard/ClipboardUtilities.h" |
@@ -201,6 +202,7 @@ |
#include "web/NotificationPermissionClientImpl.h" |
#include "web/PageOverlay.h" |
#include "web/SharedWorkerRepositoryClientImpl.h" |
+#include "web/SpeechRecognitionClientProxy.h" |
#include "web/SuspendableScriptExecutor.h" |
#include "web/TextFinder.h" |
#include "web/WebDataSourceImpl.h" |
@@ -1592,6 +1594,7 @@ void WebLocalFrameImpl::setCoreFrame(PassRefPtrWillBeRawPtr<LocalFrame> frame) |
m_geolocationClientProxy->setController(GeolocationController::from(m_frame.get())); |
provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->webMIDIClient() : 0)); |
provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); |
+ SpeechRecognitionController::provideTo(*m_frame, SpeechRecognitionClientProxy::create(m_client ? m_client->speechRecognizer() : 0)); |
Mike West
2014/11/11 05:50:47
s/0/nullptr/g
You could fix this whole method, if
mlamouri (slow - plz ping)
2014/11/28 10:43:04
Done.
|
if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->webScreenOrientationClient() : 0); |