Commit 202bb3a6 authored by yusukes@google.com's avatar yusukes@google.com

Do not show menus for opening datetime/network/language config pages on lock screen.

BUG=116216
TEST=manually checked the three buttons

Review URL: https://chromiumcodereview.appspot.com/9536007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124598 0039d316-1c4b-4281-b951-d872f2087c98
parent 5985fa3e
...@@ -147,12 +147,9 @@ bool StatusAreaHostAura::ShouldExecuteStatusAreaCommand( ...@@ -147,12 +147,9 @@ bool StatusAreaHostAura::ShouldExecuteStatusAreaCommand(
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
if (chromeos::StatusAreaViewChromeos::IsLoginMode()) { if (chromeos::StatusAreaViewChromeos::IsLoginMode()) {
// In login mode network options command means proxy settings dialog. // In login mode network options command means proxy settings dialog.
if (command_id == StatusAreaButton::Delegate::SHOW_NETWORK_OPTIONS) return command_id == StatusAreaButton::Delegate::SHOW_NETWORK_OPTIONS;
return true;
else
return false;
} else { } else {
return true; return !chromeos::StatusAreaViewChromeos::IsScreenLockMode();
} }
#else #else
// TODO(stevenjb): system options for non-chromeos Aura? // TODO(stevenjb): system options for non-chromeos Aura?
......
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