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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 8199010: Fixing misleading name a in speech input setting and related variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fixes. Landing if no problems in the bots. Created 9 years, 2 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
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/speech/chrome_speech_input_preferences.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index b76b3df7cc9e389345dd1c6816962b3c60b72576..f3eedcf9fb417acc97713b93bfd68cf442541ffb 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -374,7 +374,7 @@ void ProfileImpl::DoFinalInit() {
pref_change_registrar_.Add(prefs::kSpellCheckDictionary, this);
pref_change_registrar_.Add(prefs::kEnableSpellCheck, this);
pref_change_registrar_.Add(prefs::kEnableAutoSpellCorrect, this);
- pref_change_registrar_.Add(prefs::kSpeechInputCensorResults, this);
+ pref_change_registrar_.Add(prefs::kSpeechInputFilterProfanities, this);
pref_change_registrar_.Add(prefs::kClearSiteDataOnExit, this);
pref_change_registrar_.Add(prefs::kGoogleServicesUsername, this);
pref_change_registrar_.Add(prefs::kDefaultZoomLevel, this);
@@ -1500,9 +1500,9 @@ void ProfileImpl::Observe(int type,
RenderProcessHost* process = i.GetCurrentValue();
process->Send(new SpellCheckMsg_EnableAutoSpellCorrect(enabled));
}
- } else if (*pref_name_in == prefs::kSpeechInputCensorResults) {
- GetSpeechInputPreferences()->set_censor_results(prefs->GetBoolean(
- prefs::kSpeechInputCensorResults));
+ } else if (*pref_name_in == prefs::kSpeechInputFilterProfanities) {
+ GetSpeechInputPreferences()->set_filter_profanities(prefs->GetBoolean(
+ prefs::kSpeechInputFilterProfanities));
} else if (*pref_name_in == prefs::kClearSiteDataOnExit) {
clear_local_state_on_exit_ =
prefs->GetBoolean(prefs::kClearSiteDataOnExit);
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/speech/chrome_speech_input_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698