| Index: ash/shell/context_menu.cc
|
| diff --git a/ash/shell/context_menu.cc b/ash/shell/context_menu.cc
|
| index e3812da47567c0acebb0d8ec865adcdb70315fca..5c8ae851ac3228ece10424d9d067f9204771ef4a 100644
|
| --- a/ash/shell/context_menu.cc
|
| +++ b/ash/shell/context_menu.cc
|
| @@ -27,7 +27,7 @@ ContextMenu::~ContextMenu() {}
|
|
|
| bool ContextMenu::IsCommandIdChecked(int command_id) const {
|
| if (command_id == MENU_AUTO_HIDE)
|
| - return wm_shelf_->GetAutoHideBehavior() == SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS;
|
| + return wm_shelf_->auto_hide_behavior() == SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS;
|
| return false;
|
| }
|
|
|
| @@ -37,7 +37,7 @@ bool ContextMenu::IsCommandIdEnabled(int command_id) const {
|
|
|
| void ContextMenu::ExecuteCommand(int command_id, int event_flags) {
|
| if (command_id == MENU_AUTO_HIDE) {
|
| - wm_shelf_->SetAutoHideBehavior(wm_shelf_->GetAutoHideBehavior() ==
|
| + wm_shelf_->SetAutoHideBehavior(wm_shelf_->auto_hide_behavior() ==
|
| SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS
|
| ? SHELF_AUTO_HIDE_BEHAVIOR_NEVER
|
| : SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
|
|
|