Adds context menu so that shelf always auto-hides (except on lock
screen). This also cleans up code that was forcing shelf to be visible
when lock screen up, and it removes the 'snap to grid' menu item on
the background.
BUG=119804
TEST=none
[email protected]
Review URL: https://chromiumcodereview.appspot.com/9854001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128839 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ash/shell/shell_delegate_impl.cc b/ash/shell/shell_delegate_impl.cc
index 21a21af..4ceca7ba2 100644
--- a/ash/shell/shell_delegate_impl.cc
+++ b/ash/shell/shell_delegate_impl.cc
@@ -41,10 +41,12 @@
void ShellDelegateImpl::LockScreen() {
ash::shell::CreateLockScreen();
locked_ = true;
+ ash::Shell::GetInstance()->UpdateShelfVisibility();
}
void ShellDelegateImpl::UnlockScreen() {
locked_ = false;
+ ash::Shell::GetInstance()->UpdateShelfVisibility();
}
bool ShellDelegateImpl::IsScreenLocked() const {