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

Unified Diff: chrome/browser/app_mode/app_mode_utils.cc

Issue 2498613003: Add ARC++ kiosk menu items and ability to start kiosk session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge IsRunningInForcedAndroidAppMode() method with IsRunningInForcedAppMode() Created 4 years, 1 month 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
Index: chrome/browser/app_mode/app_mode_utils.cc
diff --git a/chrome/browser/app_mode/app_mode_utils.cc b/chrome/browser/app_mode/app_mode_utils.cc
index 758bd844ab33d992ebf0e9a27df8e352a68ba219..028867d74dc3eedc954d13dcafcad7469056dc40 100644
--- a/chrome/browser/app_mode/app_mode_utils.cc
+++ b/chrome/browser/app_mode/app_mode_utils.cc
@@ -45,13 +45,14 @@ bool IsCommandAllowedInAppMode(int command_id) {
bool IsRunningInAppMode() {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
return command_line->HasSwitch(switches::kKioskMode) ||
- IsRunningInForcedAppMode();
+ IsRunningInForcedAppMode();
}
bool IsRunningInForcedAppMode() {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
- return command_line->HasSwitch(switches::kForceAppMode) &&
- command_line->HasSwitch(switches::kAppId);
+ return (command_line->HasSwitch(switches::kForceAppMode) &&
+ command_line->HasSwitch(switches::kAppId)) ||
+ command_line->HasSwitch(switches::kForceAndroidAppMode);
}
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698