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

Unified Diff: chrome/browser/speech/chrome_speech_input_preferences.cc

Issue 9568002: Renamed speech input implementation from to speech_recognition_*. The namespace has been renamed fr… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased from master. Created 8 years, 9 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/browser/speech/chrome_speech_input_preferences.cc
diff --git a/chrome/browser/speech/chrome_speech_input_preferences.cc b/chrome/browser/speech/chrome_speech_input_preferences.cc
deleted file mode 100644
index bce8ee6f9e3103253d9729f49662e182b935137f..0000000000000000000000000000000000000000
--- a/chrome/browser/speech/chrome_speech_input_preferences.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// 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 "base/bind.h"
-#include "chrome/browser/prefs/pref_service.h"
-#include "chrome/common/pref_names.h"
-#include "content/public/browser/browser_thread.h"
-
-using content::BrowserThread;
-
-ChromeSpeechInputPreferences::ChromeSpeechInputPreferences(
- PrefService* pref_service)
- : filter_profanities_(
- pref_service->GetBoolean(prefs::kSpeechInputFilterProfanities)) {
-}
-
-ChromeSpeechInputPreferences::~ChromeSpeechInputPreferences() {
-}
-
-bool ChromeSpeechInputPreferences::FilterProfanities() const {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- return filter_profanities_;
-}
-
-void ChromeSpeechInputPreferences::SetFilterProfanities(
- bool filter_profanities) {
- if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) {
- BrowserThread::PostTask(
- BrowserThread::IO, FROM_HERE,
- base::Bind(&ChromeSpeechInputPreferences::SetFilterProfanities,
- this, filter_profanities));
- return;
- }
- filter_profanities_ = filter_profanities;
-}

Powered by Google App Engine
This is Rietveld 408576698