blob: 9a5c84cb8fe951c1b421c91c56b1bf4193c5155c [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_CONSTANTS_PREF_NAMES_H_
#define CHROMEOS_CONSTANTS_PREF_NAMES_H_
namespace chromeos::prefs {
// This is the policy CaptivePortalAuthenticationIgnoresProxy that allows to
// open captive portal authentication pages in a separate window under
// a temporary incognito profile ("signin profile" is used for this purpose),
// which allows to bypass the user's proxy for captive portal authentication.
inline constexpr char kCaptivePortalAuthenticationIgnoresProxy[] =
"proxy.captive_portal_ignores_proxy";
// A boolean pref that controls whether the prefs are associated with a captive
// portal signin window. Used to ignore proxies and allow extensions in an OTR
// profile when signing into a captive portal.
inline constexpr char kCaptivePortalSignin[] = "captive_portal_signin";
// A list of weekly time intervals when login to the device is blocked.
// Example content:
// [
// {
// "start": {
// "day_of_week": "WEDNESDAY",
// "milliseconds_since_midnight": 43200000
// },
// "end": {
// "day_of_week": "WEDNESDAY",
// "milliseconds_since_midnight": 75600000
// }
// },
// {
// "start": {
// "day_of_week": "FRIDAY",
// "milliseconds_since_midnight": 64800000
// },
// "end": {
// "day_of_week": "MONDAY",
// "milliseconds_since_midnight": 21600000
// }
// }
// ]
inline constexpr char kDeviceRestrictionSchedule[] =
"device_restriction_schedule";
// A boolean pref that signals whether a post-logout notification should be
// shown on the login screen after entering the restriction schedule.
inline constexpr char kDeviceRestrictionScheduleShowPostLogoutNotification[] =
"device_restriction_schedule_show_post_logout_notification";
// A time pref containing the highest seen system time. Used to prevent
// tampering with the system time.
inline constexpr char kDeviceRestrictionScheduleHighestSeenTime[] =
"device_restriction_schedule_highest_seen_time";
} // namespace chromeos::prefs
#endif // CHROMEOS_CONSTANTS_PREF_NAMES_H_