| Index: chrome/common/switch_utils.cc
|
| diff --git a/chrome/common/switch_utils.cc b/chrome/common/switch_utils.cc
|
| index 507df93c93c36a19ddf189ffd1e030e5fc072ae9..a29445789738be75b470ebfbf537fe969d740775 100644
|
| --- a/chrome/common/switch_utils.cc
|
| +++ b/chrome/common/switch_utils.cc
|
| @@ -30,4 +30,11 @@ void RemoveSwitchesForAutostart(
|
| switch_list->erase(kSwitchesToRemoveOnAutorestart[i]);
|
| }
|
|
|
| +bool IsRunningInAppMode() {
|
| + CommandLine* command_line = CommandLine::ForCurrentProcess();
|
| + return command_line->HasSwitch(switches::kKioskMode) ||
|
| + (command_line->HasSwitch(switches::kForceAppMode) &&
|
| + command_line->HasSwitch(switches::kAppId));
|
| +}
|
| +
|
| } // namespace switches
|
|
|