| Index: chrome/browser/speech/chrome_speech_recognition_preferences.cc
|
| diff --git a/chrome/browser/speech/chrome_speech_input_preferences.cc b/chrome/browser/speech/chrome_speech_recognition_preferences.cc
|
| similarity index 60%
|
| rename from chrome/browser/speech/chrome_speech_input_preferences.cc
|
| rename to chrome/browser/speech/chrome_speech_recognition_preferences.cc
|
| index bce8ee6f9e3103253d9729f49662e182b935137f..04a20d9dea0cf7006b8b036e1ab551968c543a4e 100644
|
| --- a/chrome/browser/speech/chrome_speech_input_preferences.cc
|
| +++ b/chrome/browser/speech/chrome_speech_recognition_preferences.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/speech/chrome_speech_input_preferences.h"
|
| +#include "chrome/browser/speech/chrome_speech_recognition_preferences.h"
|
|
|
| #include "base/bind.h"
|
| #include "chrome/browser/prefs/pref_service.h"
|
| @@ -11,26 +11,26 @@
|
|
|
| using content::BrowserThread;
|
|
|
| -ChromeSpeechInputPreferences::ChromeSpeechInputPreferences(
|
| +ChromeSpeechRecognitionPreferences::ChromeSpeechRecognitionPreferences(
|
| PrefService* pref_service)
|
| : filter_profanities_(
|
| - pref_service->GetBoolean(prefs::kSpeechInputFilterProfanities)) {
|
| + pref_service->GetBoolean(prefs::kSpeechRecognitionFilterProfanities)){
|
| }
|
|
|
| -ChromeSpeechInputPreferences::~ChromeSpeechInputPreferences() {
|
| +ChromeSpeechRecognitionPreferences::~ChromeSpeechRecognitionPreferences() {
|
| }
|
|
|
| -bool ChromeSpeechInputPreferences::FilterProfanities() const {
|
| +bool ChromeSpeechRecognitionPreferences::FilterProfanities() const {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| return filter_profanities_;
|
| }
|
|
|
| -void ChromeSpeechInputPreferences::SetFilterProfanities(
|
| +void ChromeSpeechRecognitionPreferences::SetFilterProfanities(
|
| bool filter_profanities) {
|
| if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) {
|
| BrowserThread::PostTask(
|
| BrowserThread::IO, FROM_HERE,
|
| - base::Bind(&ChromeSpeechInputPreferences::SetFilterProfanities,
|
| + base::Bind(&ChromeSpeechRecognitionPreferences::SetFilterProfanities,
|
| this, filter_profanities));
|
| return;
|
| }
|
|
|