diff options
author | jshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-16 17:55:46 +0000 |
---|---|---|
committer | jshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-16 17:55:46 +0000 |
commit | ce5a024699cc727d80fedc9d6de93add6f0d736b (patch) | |
tree | 4f9c5d3e13e7b1e7ae3da84bf4b7538a6fbb483d /views | |
parent | 93436a44fa6241b64cd065a41cf1e53cd0d3b376 (diff) | |
download | chromium_src-ce5a024699cc727d80fedc9d6de93add6f0d736b.zip chromium_src-ce5a024699cc727d80fedc9d6de93add6f0d736b.tar.gz chromium_src-ce5a024699cc727d80fedc9d6de93add6f0d736b.tar.bz2 |
Make the char encoding indicator visible again on Windows
BUG=26438
TEST=Go to any web page and see if the character encoding is indicated in Page menu - Encoding.
Patch by Satoshi.Matsuzaki with a slight modification.`(see the bug)
Review URL: http://codereview.chromium.org/391066
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32064 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/menu/simple_menu_model.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/controls/menu/simple_menu_model.cc b/views/controls/menu/simple_menu_model.cc index 67a9e2d..87b5de9 100644 --- a/views/controls/menu/simple_menu_model.cc +++ b/views/controls/menu/simple_menu_model.cc @@ -104,7 +104,8 @@ bool SimpleMenuModel::IsItemCheckedAt(int index) const { if (!delegate_) return false; int item_index = FlipIndex(index); - return (items_[item_index].type == TYPE_CHECK) ? + Menu2Model::ItemType item_type = items_[item_index].type; + return (item_type == TYPE_CHECK || item_type == TYPE_RADIO) ? delegate_->IsCommandIdChecked(GetCommandIdAt(index)) : false; } |