Index: chrome/browser/ui/views/wrench_menu.cc |
diff --git a/chrome/browser/ui/views/wrench_menu.cc b/chrome/browser/ui/views/wrench_menu.cc |
index b7d453c48086660f1fe61e73ed1a93385885a922..7b5e5ce00893cf891c911b9c7398cb9e02a2358e 100644 |
--- a/chrome/browser/ui/views/wrench_menu.cc |
+++ b/chrome/browser/ui/views/wrench_menu.cc |
@@ -693,7 +693,7 @@ int WrenchMenu::GetMaxWidthForMenu(MenuItemView* menu) { |
} |
bool WrenchMenu::IsItemChecked(int id) const { |
- if (!is_bookmark_command(id)) |
+ if (is_bookmark_command(id)) |
return false; |
const Entry& entry = id_to_entry_.find(id)->second; |
@@ -762,7 +762,9 @@ void WrenchMenu::WillShowMenu(MenuItemView* menu) { |
} |
void WrenchMenu::BookmarkModelChanged() { |
- root_->Cancel(); |
+ DCHECK(bookmark_menu_delegate_.get()); |
+ if (!bookmark_menu_delegate_->is_mutating_model()) |
+ root_->Cancel(); |
} |
WrenchMenu::~WrenchMenu() { |