summaryrefslogtreecommitdiffstats
path: root/chrome/test/base/testing_profile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/base/testing_profile.cc')
-rw-r--r--chrome/test/base/testing_profile.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 8c13345..d8aabd1 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -36,6 +36,7 @@
#include "chrome/browser/search_engines/template_url_fetcher.h"
#include "chrome/browser/search_engines/template_url_service.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
+#include "chrome/browser/speech/chrome_speech_input_preferences.h"
#include "chrome/browser/sync/profile_sync_service_mock.h"
#include "chrome/browser/ui/find_bar/find_bar_state.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
@@ -639,6 +640,12 @@ TestingProfile::GetGeolocationPermissionContext() {
return geolocation_permission_context_.get();
}
+SpeechInputPreferences* TestingProfile::GetSpeechInputPreferences() {
+ if (!speech_input_preferences_.get())
+ speech_input_preferences_ = new ChromeSpeechInputPreferences(GetPrefs());
+ return speech_input_preferences_.get();
+}
+
HostZoomMap* TestingProfile::GetHostZoomMap() {
return NULL;
}