+bool MenuModelAdapter::IsCommandVisible(int id) const {
+ ui::MenuModel* model = menu_model_;
+ int index = 0;
+ if (ui::MenuModel::GetModelAndIndexForCommandId(id, &model, &index))
+ return model->IsVisibleAt(index);
+
+ NOTREACHED();
+ return false;
+}
+