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

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: Update SpeechInputPreferences when preference changes 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
Index: content/shell/shell_browser_context.cc
diff --git a/content/shell/shell_browser_context.cc b/content/shell/shell_browser_context.cc
index fed9fba1ea7846601986113e58b7655f6aaa57ff..90b8dc3f3eeb22a1b2a0524839b694fa8a2ffc8e 100644
--- a/content/shell/shell_browser_context.cc
+++ b/content/shell/shell_browser_context.cc
@@ -20,6 +20,7 @@
#include "content/browser/in_process_webkit/webkit_context.h"
#include "content/browser/resource_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 "net/base/cert_verifier.h"
#include "net/base/cookie_monster.h"
@@ -317,6 +318,12 @@ GeolocationPermissionContext*
return geolocation_permission_context_;
}
+SpeechInputPreferences* ShellBrowserContext::GetSpeechInputPreferences() {
+ if (!speech_input_preferences_.get())
+ speech_input_preferences_ = new SpeechInputPreferences(true);
+ return speech_input_preferences_.get();
+}
+
bool ShellBrowserContext::DidLastSessionExitCleanly() {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698