Commit 2f12d792 authored by jeremy@chromium.org's avatar jeremy@chromium.org

Remove temp. code to disable "Languages and Settings" on OS X.

The "Languages and Settings" menu item should not be present in the first place in the spellcheck context menu on OS X.

I'll remove the menu item in a followup CL but in the meantime we can remove the code that specifically disables the command on Mac. In the interim having it enabled doesn't do any harm.

BUG=69944
TEST=None


Review URL: http://codereview.chromium.org/8850006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113495 0039d316-1c4b-4281-b951-d872f2087c98
parent 5bcef5c7
...@@ -1205,22 +1205,13 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) const { ...@@ -1205,22 +1205,13 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) const {
case IDC_CONTENT_CONTEXT_SEARCHWEBFOR: case IDC_CONTENT_CONTEXT_SEARCHWEBFOR:
case IDC_CONTENT_CONTEXT_GOTOURL: case IDC_CONTENT_CONTEXT_GOTOURL:
case IDC_SPELLPANEL_TOGGLE: case IDC_SPELLPANEL_TOGGLE:
#if !defined(OS_MACOSX)
// TODO(jeremy): re-enable - http://crbug.com/34512 .
case IDC_CONTENT_CONTEXT_LANGUAGE_SETTINGS: case IDC_CONTENT_CONTEXT_LANGUAGE_SETTINGS:
#endif
case IDC_CONTENT_CONTEXT_VIEWFRAMEINFO: case IDC_CONTENT_CONTEXT_VIEWFRAMEINFO:
return true; return true;
case IDC_CHECK_SPELLING_OF_THIS_FIELD: case IDC_CHECK_SPELLING_OF_THIS_FIELD:
return profile_->GetPrefs()->GetBoolean(prefs::kEnableSpellCheck); return profile_->GetPrefs()->GetBoolean(prefs::kEnableSpellCheck);
#if defined(OS_MACOSX)
// TODO(jeremy): re-enable - http://crbug.com/34512 .
case IDC_CONTENT_CONTEXT_LANGUAGE_SETTINGS:
return false;
#endif
#if defined(OS_MACOSX) #if defined(OS_MACOSX)
case IDC_WRITING_DIRECTION_DEFAULT: // Provided to match OS defaults. case IDC_WRITING_DIRECTION_DEFAULT: // Provided to match OS defaults.
return params_.writing_direction_default & return params_.writing_direction_default &
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment