summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorsidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-15 23:15:06 +0000
committersidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-15 23:15:06 +0000
commit11eaad592f6ccb4721870f0ab0211ea30e429a3d (patch)
tree3358ecae5e85daeb82d90728427e73f75bb480ef /chrome
parentcaa385013316f797a989b41518a5609608a6588d (diff)
downloadchromium_src-11eaad592f6ccb4721870f0ab0211ea30e429a3d.zip
chromium_src-11eaad592f6ccb4721870f0ab0211ea30e429a3d.tar.gz
chromium_src-11eaad592f6ccb4721870f0ab0211ea30e429a3d.tar.bz2
Fix issue: If SpellChecker is disabled through UI, then right-click context menu's spell checker language option should be unchecked.
Issue=7239 Review URL: http://codereview.chromium.org/75014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13805 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/tab_contents/render_view_context_menu.cc3
1 files changed, 2 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 8e60647..fd94e13 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc
@@ -202,7 +202,8 @@ bool RenderViewContextMenu::IsItemCommandEnabled(int id) const {
// Allow Spell Check language items on sub menu for text area context menu.
if ((id >= IDC_SPELLCHECK_LANGUAGES_FIRST) &&
(id < IDC_SPELLCHECK_LANGUAGES_LAST)) {
- return true;
+ return source_web_contents_->profile()->GetPrefs()->GetBoolean(
+ prefs::kEnableSpellCheck);
}
switch (id) {