| // Copyright 2021 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "chromeos/crosapi/cpp/lacros_startup_state.h" |
| |
| namespace { |
| |
| bool g_is_lacros_enabled = false; |
| bool g_is_lacros_primary_enabled = false; |
| |
| } // namespace |
| |
| namespace crosapi { |
| |
| namespace lacros_startup_state { |
| |
| void SetLacrosStartupState(bool is_enabled, bool is_primary_enabled) { |
| g_is_lacros_enabled = is_enabled; |
| g_is_lacros_primary_enabled = is_primary_enabled; |
| } |
| |
| bool IsLacrosEnabled() { |
| return g_is_lacros_enabled; |
| } |
| |
| bool IsLacrosPrimaryEnabled() { |
| return g_is_lacros_primary_enabled; |
| } |
| |
| } // namespace lacros_startup_state |
| |
| } // namespace crosapi |