OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/app_mode/app_mode_utils.h" |
| 6 |
| 7 #include "base/command_line.h" |
| 8 #include "chrome/common/chrome_switches.h" |
| 9 |
| 10 namespace chrome { |
| 11 |
| 12 bool IsRunningInAppMode() { |
| 13 CommandLine* command_line = CommandLine::ForCurrentProcess(); |
| 14 return command_line->HasSwitch(switches::kKioskMode) || |
| 15 (command_line->HasSwitch(switches::kForceAppMode) && |
| 16 command_line->HasSwitch(switches::kAppId)); |
| 17 } |
| 18 |
| 19 } // namespace switches |
OLD | NEW |