diff options
author | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-08 09:58:51 +0000 |
---|---|---|
committer | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-08 09:58:51 +0000 |
commit | 93a2a7ae1b9427123644470a99e91bb16ed05d3a (patch) | |
tree | 0a6f8e2ad35c90cd65ec2b923a8a45219feb8e18 /chrome/browser/tab_contents | |
parent | c2fd7b445e7ef6fd888d4de9d12b4384dbbbf637 (diff) | |
download | chromium_src-93a2a7ae1b9427123644470a99e91bb16ed05d3a.zip chromium_src-93a2a7ae1b9427123644470a99e91bb16ed05d3a.tar.gz chromium_src-93a2a7ae1b9427123644470a99e91bb16ed05d3a.tar.bz2 |
Show an "add to dictionary" item.
My r108096 always creates a SpellingMenuObserver instance when there are misspelled words, i.e. |spelling_menu_observer_.get()| does not return NULL, and it prevents adding an "add to dictionary" item. This change removes the check to show the item.
BUG=103186
TEST=Type 'quartile' in a <textarea> element, right-click it, and verify a context-menu show an 'add to dictionary' item.
Review URL: http://codereview.chromium.org/8490002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108998 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/render_view_context_menu.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc index 25c6389..491a4a4 100644 --- a/chrome/browser/tab_contents/render_view_context_menu.cc +++ b/chrome/browser/tab_contents/render_view_context_menu.cc @@ -846,7 +846,7 @@ void RenderViewContextMenu::AppendEditableItems() { } // If word is misspelled, give option for "Add to dictionary" - if (!spelling_menu_observer_.get() && !params_.misspelled_word.empty()) { + if (!params_.misspelled_word.empty()) { if (params_.dictionary_suggestions.empty()) { menu_model_.AddItem(IDC_CONTENT_CONTEXT_NO_SPELLING_SUGGESTIONS, l10n_util::GetStringUTF16( |