Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Unified Diff: content/shell/shell_browser_context.cc

Issue 7989001: Remove use of default request context and fix use of speech censor flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Separate overriden methods in profile_impl.h Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/shell_browser_context.h ('k') | content/test/test_browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_browser_context.cc
diff --git a/content/shell/shell_browser_context.cc b/content/shell/shell_browser_context.cc
index 91c51c88725907274b8e4a42da4a8c09d336d6cb..33d88f94592d1de83d267aac40c33ed5c6b4030c 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;
}
« no previous file with comments | « content/shell/shell_browser_context.h ('k') | content/test/test_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698