Index: chrome/browser/ui/webui/options/browser_options_handler.cc |
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc |
index 1ac1a6289be43e7bdc3a66c483654fa2c0af6782..7edd6073f4c2cb34da9d37f2273e21df176c304a 100644 |
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc |
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc |
@@ -489,6 +489,8 @@ void BrowserOptionsHandler::GetLocalizedValues(DictionaryValue* values) { |
// Sets flag of whether kiosk section should be enabled. |
values->SetBoolean( |
"enableKioskSection", |
+ CommandLine::ForCurrentProcess()->HasSwitch( |
+ chromeos::switches::kEnableKioskAppSettings) && |
!CommandLine::ForCurrentProcess()->HasSwitch( |
chromeos::switches::kDisableAppMode) && |
(chromeos::UserManager::Get()->IsCurrentUserOwner() || |