Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Unified Diff: chrome/browser/ui/views/aura/status_area_host_aura.cc

Issue 9536007: Do not show menus for opening datetime/network/language config pages on lock screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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?
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698