summaryrefslogtreecommitdiffstats
path: root/content/shell/browser/shell_content_browser_client.cc
diff options
context:
space:
mode:
authorjanx@chromium.org <janx@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-29 19:03:20 +0000
committerjanx@chromium.org <janx@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-29 19:03:20 +0000
commit9896c551a2784462637f374bd25c3c4e0699148d (patch)
tree148ac230e49884bbbce96f27274549f1503130ca /content/shell/browser/shell_content_browser_client.cc
parent8e9acb3be01d6706ab4f3df27200e8d31ddd41e6 (diff)
downloadchromium_src-9896c551a2784462637f374bd25c3c4e0699148d.zip
chromium_src-9896c551a2784462637f374bd25c3c4e0699148d.tar.gz
chromium_src-9896c551a2784462637f374bd25c3c4e0699148d.tar.bz2
Allow speech recognition to work in content_shell.
Until now, content_shell was exposing the Web Speech API's recognition feature to websites, but if they tried to use it, nothing happened because content_shell doesn't know how to ask the user for permission to use the microphone. To fix this, a SpeechRecognitionManagerDelegate was implemented for content_shell to grant speech recognition permission when requested. BUG=237119 Review URL: https://chromiumcodereview.appspot.com/23606003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/browser/shell_content_browser_client.cc')
-rw-r--r--content/shell/browser/shell_content_browser_client.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/shell/browser/shell_content_browser_client.cc b/content/shell/browser/shell_content_browser_client.cc
index c837929..040fce8 100644
--- a/content/shell/browser/shell_content_browser_client.cc
+++ b/content/shell/browser/shell_content_browser_client.cc
@@ -188,6 +188,11 @@ ShellContentBrowserClient::CreateQuotaPermissionContext() {
return new ShellQuotaPermissionContext();
}
+SpeechRecognitionManagerDelegate*
+ ShellContentBrowserClient::GetSpeechRecognitionManagerDelegate() {
+ return new ShellSpeechRecognitionManagerDelegate();
+}
+
net::NetLog* ShellContentBrowserClient::GetNetLog() {
return shell_browser_main_parts_->net_log();
}