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

Unified Diff: chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc

Issue 9562002: Use a check item instead of changing its text. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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/spellchecker_submenu_observer_hunspell.cc
===================================================================
--- chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc (revision 124915)
+++ chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc (working copy)
@@ -70,17 +70,11 @@
l10n_util::GetStringUTF16(
IDS_CONTENT_CONTEXT_CHECK_SPELLING_OF_THIS_FIELD));
- // If we have not integrated the spelling service, we show an "Ask Google for
- // spelling suggestions" item. On the other hand, if we have integrated the
- // spelling service, we show "Stop asking Google for spelling suggestions"
- // item.
- bool integrate_spelling_service =
- profile->GetPrefs()->GetBoolean(prefs::kSpellCheckUseSpellingService);
- int spelling_message = integrate_spelling_service ?
- IDS_CONTENT_CONTEXT_SPELLING_STOP_ASKING_GOOGLE :
- IDS_CONTENT_CONTEXT_SPELLING_ASK_GOOGLE;
+ // Add a check item "Ask Google for spelling suggestions" item. (This class
+ // does not handle this item because the SpellingMenuObserver class handles it
+ // on behalf of this class.)
submenu_model_.AddCheckItem(IDC_CONTENT_CONTEXT_SPELLING_TOGGLE,
- l10n_util::GetStringUTF16(spelling_message));
+ l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_SPELLING_ASK_GOOGLE));
proxy_->AddSubMenu(
IDC_SPELLCHECK_MENU,
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/browser/tab_contents/spelling_menu_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698