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

Unified Diff: chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc

Issue 2254533003: Rename spellcheck::pref::kEnableContinuousSpellcheck to ...::kEnableSpellcheck (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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/renderer_context_menu/spelling_options_submenu_observer.cc
diff --git a/chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc b/chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc
index 6e19e7956e59719ac50430013c7c6bbf82b3cef8..8a514b162d878d69e1942f4fc57569398c07f000 100644
--- a/chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc
+++ b/chrome/browser/renderer_context_menu/spelling_options_submenu_observer.cc
@@ -136,7 +136,7 @@ bool SpellingOptionsSubMenuObserver::IsCommandIdChecked(int command_id) {
if (command_id == IDC_CHECK_SPELLING_WHILE_TYPING) {
Profile* profile = Profile::FromBrowserContext(proxy_->GetBrowserContext());
return profile->GetPrefs()->GetBoolean(
- spellcheck::prefs::kEnableContinuousSpellcheck);
+ spellcheck::prefs::kEnableSpellcheck);
}
return false;
@@ -151,7 +151,7 @@ bool SpellingOptionsSubMenuObserver::IsCommandIdEnabled(int command_id) {
if ((command_id >= IDC_SPELLCHECK_LANGUAGES_FIRST &&
command_id < IDC_SPELLCHECK_LANGUAGES_LAST) ||
command_id == IDC_SPELLCHECK_MULTI_LINGUAL) {
- return pref->GetBoolean(spellcheck::prefs::kEnableContinuousSpellcheck);
+ return pref->GetBoolean(spellcheck::prefs::kEnableSpellcheck);
}
switch (command_id) {
@@ -185,9 +185,9 @@ void SpellingOptionsSubMenuObserver::ExecuteCommand(int command_id) {
switch (command_id) {
case IDC_CHECK_SPELLING_WHILE_TYPING:
profile->GetPrefs()->SetBoolean(
- spellcheck::prefs::kEnableContinuousSpellcheck,
+ spellcheck::prefs::kEnableSpellcheck,
!profile->GetPrefs()->GetBoolean(
- spellcheck::prefs::kEnableContinuousSpellcheck));
+ spellcheck::prefs::kEnableSpellcheck));
break;
case IDC_SPELLCHECK_MULTI_LINGUAL:

Powered by Google App Engine
This is Rietveld 408576698