| Index: chrome/browser/ui/ash/launcher/launcher_context_menu.cc
|
| diff --git a/chrome/browser/ui/ash/launcher/launcher_context_menu.cc b/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
|
| index 36d7d6e272bb32a370cf8e9de43ee757a34d8b03..652ef4120b6cb0f4b544e5a0b17eb2b5004236cb 100644
|
| --- a/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
|
| +++ b/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
|
| @@ -170,9 +170,10 @@ void LauncherContextMenu::Init() {
|
| // the type of fullscreen. Do not show the auto-hide menu item while in
|
| // fullscreen because it is confusing when the preference appears not to
|
| // apply.
|
| - if (!IsFullScreenMode()) {
|
| + if (!IsFullScreenMode() &&
|
| + controller_->CanUserModifyShelfAutoHideBehavior(root_window_)) {
|
| AddCheckItemWithStringId(MENU_AUTO_HIDE,
|
| - IDS_ASH_SHELF_CONTEXT_MENU_AUTO_HIDE);
|
| + IDS_ASH_SHELF_CONTEXT_MENU_AUTO_HIDE);
|
| }
|
| if (ash::ShelfWidget::ShelfAlignmentAllowed()) {
|
| AddSubMenuWithStringId(MENU_ALIGNMENT_MENU,
|
|
|