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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.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/tab_contents/render_view_context_menu.cc
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
index 91b69082656ce8e7d5a97d69c647c96c686cde77..2bf2ebe18d374c5fab26af1318ee12a8ec0f94f7 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc
@@ -68,7 +68,7 @@
#include "content/public/browser/notification_service.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_widget_host_view.h"
-#include "content/public/browser/speech_input_preferences.h"
+#include "content/public/browser/speech_recognition_preferences.h"
#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_restriction.h"
@@ -1415,7 +1415,7 @@ bool RenderViewContextMenu::IsCommandIdChecked(int id) const {
// Check box for menu item 'Block offensive words'.
if (id == IDC_CONTENT_CONTEXT_SPEECH_INPUT_FILTER_PROFANITIES) {
return profile_->GetPrefs()->GetBoolean(
- prefs::kSpeechInputFilterProfanities);
+ prefs::kSpeechRecognitionFilterProfanities);
}
return false;
@@ -1851,9 +1851,9 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
case IDC_CONTENT_CONTEXT_SPEECH_INPUT_FILTER_PROFANITIES: {
PrefService* prefs = profile_->GetPrefs();
const bool filter = !prefs->GetBoolean(
- prefs::kSpeechInputFilterProfanities);
- prefs->SetBoolean(prefs::kSpeechInputFilterProfanities, filter);
- profile_->GetSpeechInputPreferences()->SetFilterProfanities(filter);
+ prefs::kSpeechRecognitionFilterProfanities);
+ prefs->SetBoolean(prefs::kSpeechRecognitionFilterProfanities, filter);
+ profile_->GetSpeechRecognitionPreferences()->SetFilterProfanities(filter);
break;
}
« no previous file with comments | « chrome/browser/speech/speech_recognition_bubble_views.cc ('k') | chrome/browser/ui/cocoa/speech_input_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698