diff options
author | zelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-13 01:14:24 +0000 |
---|---|---|
committer | zelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-13 01:14:24 +0000 |
commit | f6f2073d8c8fff901501eb4cc3f3e30a5467d608 (patch) | |
tree | 678abf3b4605af8b661b5ed3ccd3ce426397fd63 /chrome/browser | |
parent | cb7bd53da71487e1db6ea63055ba4dbdb1df0a86 (diff) | |
download | chromium_src-f6f2073d8c8fff901501eb4cc3f3e30a5467d608.zip chromium_src-f6f2073d8c8fff901501eb4cc3f3e30a5467d608.tar.gz chromium_src-f6f2073d8c8fff901501eb4cc3f3e30a5467d608.tar.bz2 |
Fix for popup menu assert.
BUG=chromium-os:3237
TEST=get debug build, open content browser, right click on a file
Review URL: http://codereview.chromium.org/2025011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47103 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/tab_contents/render_view_context_menu.cc | 5 |
1 files changed, 4 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 2203bc0..1c14ba9 100644 --- a/chrome/browser/tab_contents/render_view_context_menu.cc +++ b/chrome/browser/tab_contents/render_view_context_menu.cc @@ -802,7 +802,10 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) const { case IDS_CONTENT_CONTEXT_ADD_TO_DICTIONARY: return !params_.misspelled_word.empty(); -#if !defined(OS_CHROMEOS) +#if defined(OS_CHROMEOS) + case IDS_CONTENT_CONTEXT_PRINT: + return false; +#else case IDS_CONTENT_CONTEXT_PRINT: #endif case IDS_CONTENT_CONTEXT_SEARCHWEBFOR: |