| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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 "chromeos/system/devicemode.h" |
| 6 |
| 7 #include "base/command_line.h" |
| 8 #include "base/sys_info.h" |
| 9 #include "chromeos/chromeos_switches.h" |
| 10 |
| 11 namespace chromeos { |
| 12 |
| 13 bool IsRunningAsSystemCompositor() { |
| 14 static bool is_running_as_system_compositor = |
| 15 base::SysInfo::IsRunningOnChromeOS() || |
| 16 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 17 switches::kForceSystemCompositorMode); |
| 18 return is_running_as_system_compositor; |
| 19 } |
| 20 |
| 21 } // namespace chromeos |
| OLD | NEW |