Commit 2d20ec84 authored by zturner@chromium.org's avatar zturner@chromium.org

Don't show the Autohide Shelf menu option when it's unsupported.

BUG=328742
R=skuhne@chromium.org

Review URL: https://codereview.chromium.org/134653005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244253 0039d316-1c4b-4281-b951-d872f2087c98
parent 504b444e
...@@ -170,9 +170,10 @@ void LauncherContextMenu::Init() { ...@@ -170,9 +170,10 @@ void LauncherContextMenu::Init() {
// the type of fullscreen. Do not show the auto-hide menu item while in // 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 // fullscreen because it is confusing when the preference appears not to
// apply. // apply.
if (!IsFullScreenMode()) { if (!IsFullScreenMode() &&
controller_->CanUserModifyShelfAutoHideBehavior(root_window_)) {
AddCheckItemWithStringId(MENU_AUTO_HIDE, AddCheckItemWithStringId(MENU_AUTO_HIDE,
IDS_ASH_SHELF_CONTEXT_MENU_AUTO_HIDE); IDS_ASH_SHELF_CONTEXT_MENU_AUTO_HIDE);
} }
if (ash::ShelfWidget::ShelfAlignmentAllowed()) { if (ash::ShelfWidget::ShelfAlignmentAllowed()) {
AddSubMenuWithStringId(MENU_ALIGNMENT_MENU, AddSubMenuWithStringId(MENU_ALIGNMENT_MENU,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment