Index: chrome/browser/ui/views/aura/status_area_host_aura.cc |
diff --git a/chrome/browser/ui/views/aura/status_area_host_aura.cc b/chrome/browser/ui/views/aura/status_area_host_aura.cc |
index 7ce10d8f142ebc01e63be171ddf0a08d0ac6f10d..dfdc5bb85a0fc962f3ee16e1c571c5d1801633b6 100644 |
--- a/chrome/browser/ui/views/aura/status_area_host_aura.cc |
+++ b/chrome/browser/ui/views/aura/status_area_host_aura.cc |
@@ -147,12 +147,9 @@ bool StatusAreaHostAura::ShouldExecuteStatusAreaCommand( |
#if defined(OS_CHROMEOS) |
if (chromeos::StatusAreaViewChromeos::IsLoginMode()) { |
// In login mode network options command means proxy settings dialog. |
- if (command_id == StatusAreaButton::Delegate::SHOW_NETWORK_OPTIONS) |
- return true; |
- else |
- return false; |
+ return command_id == StatusAreaButton::Delegate::SHOW_NETWORK_OPTIONS; |
} else { |
- return true; |
+ return !chromeos::StatusAreaViewChromeos::IsScreenLockMode(); |
} |
#else |
// TODO(stevenjb): system options for non-chromeos Aura? |