summaryrefslogtreecommitdiffstats
path: root/content/shell/shell_browser_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/shell/shell_browser_context.cc')
-rw-r--r--content/shell/shell_browser_context.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/content/shell/shell_browser_context.cc b/content/shell/shell_browser_context.cc
index 91c51c8..33d88f9 100644
--- a/content/shell/shell_browser_context.cc
+++ b/content/shell/shell_browser_context.cc
@@ -18,6 +18,7 @@
#include "content/browser/host_zoom_map.h"
#include "content/browser/in_process_webkit/webkit_context.h"
#include "content/browser/ssl/ssl_host_state.h"
+#include "content/browser/speech/speech_input_preferences.h"
#include "content/shell/shell_browser_main.h"
#include "content/shell/shell_resource_context.h"
#include "content/shell/shell_url_request_context_getter.h"
@@ -56,6 +57,23 @@ class ShellGeolocationPermissionContext : public GeolocationPermissionContext {
DISALLOW_COPY_AND_ASSIGN(ShellGeolocationPermissionContext);
};
+class ShellSpeechInputPreferences : public SpeechInputPreferences {
+ public:
+ ShellSpeechInputPreferences() {
+ }
+
+ // SpeechInputPreferences implementation.
+ virtual bool censor_results() const OVERRIDE {
+ return false;
+ }
+
+ virtual void set_censor_results(bool censor_results) OVERRIDE {
+ }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ShellSpeechInputPreferences);
+};
+
} // namespace
namespace content {
@@ -160,6 +178,12 @@ GeolocationPermissionContext*
return geolocation_permission_context_;
}
+SpeechInputPreferences* ShellBrowserContext::GetSpeechInputPreferences() {
+ if (!speech_input_preferences_.get())
+ speech_input_preferences_ = new ShellSpeechInputPreferences();
+ return speech_input_preferences_.get();
+}
+
bool ShellBrowserContext::DidLastSessionExitCleanly() {
return true;
}