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

Unified Diff: chrome/test/base/testing_profile.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: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index d75727a03074ecc85ff78c36901f98ba4f9b59f8..d36da6746c029d710714a7fe1811bfd1a91b6e81 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -50,6 +50,7 @@
#include "content/browser/browser_thread.h"
#include "content/browser/in_process_webkit/webkit_context.h"
#include "content/browser/mock_resource_context.h"
+#include "content/browser/speech/speech_input_preferences.h"
#include "content/common/notification_service.h"
#include "net/base/cookie_monster.h"
#include "net/url_request/url_request_context.h"
@@ -640,6 +641,12 @@ TestingProfile::GetGeolocationPermissionContext() {
return geolocation_permission_context_.get();
}
+SpeechInputPreferences* TestingProfile::GetSpeechInputPreferences() {
+ if (!speech_input_preferences_.get())
+ speech_input_preferences_ = new SpeechInputPreferences(true);
+ return speech_input_preferences_.get();
+}
+
HostZoomMap* TestingProfile::GetHostZoomMap() {
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698