| Index: app/menus/button_menu_item_model.cc
|
| diff --git a/app/menus/button_menu_item_model.cc b/app/menus/button_menu_item_model.cc
|
| index a7fbcde80563ae18382479b8b87b420503b332fa..3d44b1b069698f17b2eb6006eafd235d89b469c0 100644
|
| --- a/app/menus/button_menu_item_model.cc
|
| +++ b/app/menus/button_menu_item_model.cc
|
| @@ -8,7 +8,7 @@
|
|
|
| namespace menus {
|
|
|
| -bool ButtonMenuItemModel::Delegate::IsLabelForCommandIdDynamic(
|
| +bool ButtonMenuItemModel::Delegate::IsItemForCommandIdDynamic(
|
| int command_id) const {
|
| return false;
|
| }
|
| @@ -82,14 +82,14 @@ int ButtonMenuItemModel::GetCommandIdAt(int index) const {
|
| return items_[index].command_id;
|
| }
|
|
|
| -bool ButtonMenuItemModel::IsLabelDynamicAt(int index) const {
|
| +bool ButtonMenuItemModel::IsItemDynamicAt(int index) const {
|
| if (delegate_)
|
| - return delegate_->IsLabelForCommandIdDynamic(GetCommandIdAt(index));
|
| + return delegate_->IsItemForCommandIdDynamic(GetCommandIdAt(index));
|
| return false;
|
| }
|
|
|
| string16 ButtonMenuItemModel::GetLabelAt(int index) const {
|
| - if (IsLabelDynamicAt(index))
|
| + if (IsItemDynamicAt(index))
|
| return delegate_->GetLabelForCommandId(GetCommandIdAt(index));
|
| return items_[index].label;
|
| }
|
|
|