From ce5a024699cc727d80fedc9d6de93add6f0d736b Mon Sep 17 00:00:00 2001 From: "jshin@chromium.org" Date: Mon, 16 Nov 2009 17:55:46 +0000 Subject: 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 --- views/controls/menu/simple_menu_model.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'views') 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; } -- cgit v1.1