diff --git a/ash/accelerators/accelerator_controller_impl.cc b/ash/accelerators/accelerator_controller_impl.cc index 6be4ffbf1a9220..2076937e1b31cc 100644 --- a/ash/accelerators/accelerator_controller_impl.cc +++ b/ash/accelerators/accelerator_controller_impl.cc @@ -24,6 +24,7 @@ #include "ash/clipboard/clipboard_history_controller_impl.h" #include "ash/components/audio/cras_audio_handler.h" #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" #include "ash/constants/devicetype.h" #include "ash/debug.h" @@ -37,7 +38,6 @@ #include "ash/keyboard/ui/keyboard_ui_controller.h" #include "ash/metrics/user_metrics_recorder.h" #include "ash/multi_profile_uma.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/assistant/controller/assistant_ui_controller.h" #include "ash/public/cpp/new_window_delegate.h" #include "ash/public/cpp/notification_utils.h" diff --git a/ash/accelerators/accelerator_controller_unittest.cc b/ash/accelerators/accelerator_controller_unittest.cc index 8845f632294db9..af06c1daafafec 100644 --- a/ash/accelerators/accelerator_controller_unittest.cc +++ b/ash/accelerators/accelerator_controller_unittest.cc @@ -19,6 +19,7 @@ #include "ash/capture_mode/capture_mode_controller.h" #include "ash/capture_mode/capture_mode_types.h" #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" #include "ash/display/screen_orientation_controller.h" #include "ash/display/screen_orientation_controller_test_api.h" @@ -26,7 +27,6 @@ #include "ash/ime/mode_indicator_observer.h" #include "ash/ime/test_ime_controller_client.h" #include "ash/media/media_controller_impl.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/capture_mode_test_api.h" #include "ash/public/cpp/ime_info.h" #include "ash/public/cpp/shell_window_ids.h" diff --git a/ash/accessibility/accessibility_controller_impl.cc b/ash/accessibility/accessibility_controller_impl.cc index 2ef4fb5f5ef2c0..b8a3065c6caf87 100644 --- a/ash/accessibility/accessibility_controller_impl.cc +++ b/ash/accessibility/accessibility_controller_impl.cc @@ -20,6 +20,7 @@ #include "ash/components/audio/cras_audio_handler.h" #include "ash/components/audio/sounds.h" #include "ash/constants/ash_constants.h" +#include "ash/constants/ash_pref_names.h" #include "ash/events/accessibility_event_rewriter.h" #include "ash/events/select_to_speak_event_handler.h" #include "ash/high_contrast/high_contrast_controller.h" @@ -29,7 +30,6 @@ #include "ash/policy/policy_recommendation_restorer.h" #include "ash/public/cpp/accessibility_controller_client.h" #include "ash/public/cpp/ash_constants.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/notification_utils.h" #include "ash/public/cpp/session/session_observer.h" #include "ash/public/cpp/shell_window_ids.h" diff --git a/ash/accessibility/accessibility_controller_unittest.cc b/ash/accessibility/accessibility_controller_unittest.cc index e7debe93941c14..dbe8d6d4d9fbfc 100644 --- a/ash/accessibility/accessibility_controller_unittest.cc +++ b/ash/accessibility/accessibility_controller_unittest.cc @@ -12,8 +12,8 @@ #include "ash/accessibility/sticky_keys/sticky_keys_controller.h" #include "ash/accessibility/test_accessibility_controller_client.h" #include "ash/constants/ash_constants.h" +#include "ash/constants/ash_pref_names.h" #include "ash/keyboard/ui/keyboard_util.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/session/test_pref_service_provider.h" #include "ash/shell.h" diff --git a/ash/accessibility/magnifier/docked_magnifier_controller.cc b/ash/accessibility/magnifier/docked_magnifier_controller.cc index 2382331d5bb242..ef0e9a6fec2fe7 100644 --- a/ash/accessibility/magnifier/docked_magnifier_controller.cc +++ b/ash/accessibility/magnifier/docked_magnifier_controller.cc @@ -9,8 +9,8 @@ #include "ash/accessibility/accessibility_controller_impl.h" #include "ash/accessibility/magnifier/magnifier_utils.h" +#include "ash/constants/ash_pref_names.h" #include "ash/host/ash_window_tree_host.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/shell_window_ids.h" #include "ash/root_window_controller.h" #include "ash/session/session_controller_impl.h" diff --git a/ash/accessibility/magnifier/docked_magnifier_controller_unittest.cc b/ash/accessibility/magnifier/docked_magnifier_controller_unittest.cc index 32168fe9bcc09e..2508d98ae14349 100644 --- a/ash/accessibility/magnifier/docked_magnifier_controller_unittest.cc +++ b/ash/accessibility/magnifier/docked_magnifier_controller_unittest.cc @@ -8,11 +8,11 @@ #include #include "ash/accessibility/magnifier/magnifier_test_utils.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" #include "ash/display/display_util.h" #include "ash/display/window_tree_host_manager.h" #include "ash/host/ash_window_tree_host.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/shelf_config.h" #include "ash/session/session_controller_impl.h" #include "ash/session/test_session_controller_client.h" diff --git a/ash/ambient/ui/media_string_view.cc b/ash/ambient/ui/media_string_view.cc index 0de5314ee8bc85..5e9429c4791f09 100644 --- a/ash/ambient/ui/media_string_view.cc +++ b/ash/ambient/ui/media_string_view.cc @@ -10,7 +10,7 @@ #include "ash/ambient/ambient_constants.h" #include "ash/ambient/ui/ambient_view_ids.h" #include "ash/ambient/util/ambient_util.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/resources/vector_icons/vector_icons.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" diff --git a/ash/ambient/ui/media_string_view_unittest.cc b/ash/ambient/ui/media_string_view_unittest.cc index fb694d9568ad58..6d93df5e11de29 100644 --- a/ash/ambient/ui/media_string_view_unittest.cc +++ b/ash/ambient/ui/media_string_view_unittest.cc @@ -9,7 +9,7 @@ #include "ash/ambient/ambient_constants.h" #include "ash/ambient/test/ambient_ash_test_base.h" #include "ash/ambient/ui/ambient_container_view.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/shell.h" #include "base/strings/utf_string_conversions.h" #include "services/media_session/public/mojom/media_session.mojom.h" diff --git a/ash/app_list/app_list_controller_impl.cc b/ash/app_list/app_list_controller_impl.cc index 46007259f47787..754d73a9a6f69e 100644 --- a/ash/app_list/app_list_controller_impl.cc +++ b/ash/app_list/app_list_controller_impl.cc @@ -34,7 +34,6 @@ #include "ash/public/cpp/app_list/app_list_metrics.h" #include "ash/public/cpp/app_list/app_list_notifier.h" #include "ash/public/cpp/app_list/app_list_types.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/assistant/controller/assistant_controller.h" #include "ash/public/cpp/assistant/controller/assistant_ui_controller.h" #include "ash/public/cpp/shelf_config.h" diff --git a/ash/app_list/views/assistant/assistant_test_api_impl.cc b/ash/app_list/views/assistant/assistant_test_api_impl.cc index d399398b7d79a0..361795864f8b07 100644 --- a/ash/app_list/views/assistant/assistant_test_api_impl.cc +++ b/ash/app_list/views/assistant/assistant_test_api_impl.cc @@ -11,7 +11,7 @@ #include "ash/app_list/views/app_list_view.h" #include "ash/app_list/views/contents_view.h" #include "ash/assistant/ui/assistant_view_ids.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/assistant/assistant_state.h" #include "ash/public/cpp/tablet_mode.h" #include "ash/session/session_controller_impl.h" diff --git a/ash/ash_prefs.cc b/ash/ash_prefs.cc index b8a443684172b7..b823c651226e21 100644 --- a/ash/ash_prefs.cc +++ b/ash/ash_prefs.cc @@ -19,7 +19,6 @@ #include "ash/login/login_screen_controller.h" #include "ash/login/ui/login_expanded_public_account_view.h" #include "ash/media/media_controller_impl.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/holding_space/holding_space_prefs.h" #include "ash/session/fullscreen_controller.h" #include "ash/shelf/contextual_tooltip.h" diff --git a/ash/assistant/assistant_controller_impl.cc b/ash/assistant/assistant_controller_impl.cc index e296e9181a54ea..ba6b7171cce20c 100644 --- a/ash/assistant/assistant_controller_impl.cc +++ b/ash/assistant/assistant_controller_impl.cc @@ -10,7 +10,6 @@ #include "ash/accessibility/accessibility_controller_impl.h" #include "ash/assistant/util/deep_link_util.h" #include "ash/public/cpp/android_intent_helper.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/new_window_delegate.h" #include "ash/public/mojom/assistant_volume_control.mojom.h" #include "ash/session/session_controller_impl.h" diff --git a/ash/assistant/assistant_interaction_controller_impl.cc b/ash/assistant/assistant_interaction_controller_impl.cc index 3256d557650d69..9b488b6144017f 100644 --- a/ash/assistant/assistant_interaction_controller_impl.cc +++ b/ash/assistant/assistant_interaction_controller_impl.cc @@ -20,8 +20,8 @@ #include "ash/assistant/util/assistant_util.h" #include "ash/assistant/util/deep_link_util.h" #include "ash/assistant/util/histogram_util.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/android_intent_helper.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/assistant/assistant_setup.h" #include "ash/public/cpp/assistant/assistant_state.h" #include "ash/public/cpp/assistant/controller/assistant_suggestions_controller.h" diff --git a/ash/assistant/assistant_ui_controller_impl.cc b/ash/assistant/assistant_ui_controller_impl.cc index 74d15e60d35f26..74cb4ca8c57101 100644 --- a/ash/assistant/assistant_ui_controller_impl.cc +++ b/ash/assistant/assistant_ui_controller_impl.cc @@ -10,7 +10,7 @@ #include "ash/assistant/util/assistant_util.h" #include "ash/assistant/util/deep_link_util.h" #include "ash/assistant/util/histogram_util.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/assistant/assistant_setup.h" #include "ash/public/cpp/assistant/assistant_state.h" #include "ash/public/cpp/assistant/controller/assistant_interaction_controller.h" diff --git a/ash/clipboard/clipboard_nudge_controller.cc b/ash/clipboard/clipboard_nudge_controller.cc index b19fa2128eb579..1363c842a67279 100644 --- a/ash/clipboard/clipboard_nudge_controller.cc +++ b/ash/clipboard/clipboard_nudge_controller.cc @@ -8,7 +8,7 @@ #include "ash/clipboard/clipboard_history_util.h" #include "ash/clipboard/clipboard_nudge.h" #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "base/bind.h" diff --git a/ash/constants/ash_pref_names.cc b/ash/constants/ash_pref_names.cc index bb0566e8126aa1..440d394c48b8e7 100644 --- a/ash/constants/ash_pref_names.cc +++ b/ash/constants/ash_pref_names.cc @@ -154,5 +154,652 @@ const char kLauncherSearchNormalizerParameters[] = const char kDeviceSystemWideTracingEnabled[] = "device_system_wide_tracing_enabled"; +// A boolean pref which determines whether the large cursor feature is enabled. +const char kAccessibilityLargeCursorEnabled[] = + "settings.a11y.large_cursor_enabled"; +// An integer pref that specifies the size of large cursor for accessibility. +const char kAccessibilityLargeCursorDipSize[] = + "settings.a11y.large_cursor_dip_size"; +// A boolean pref which determines whether the sticky keys feature is enabled. +const char kAccessibilityStickyKeysEnabled[] = + "settings.a11y.sticky_keys_enabled"; +// A boolean pref which determines whether spoken feedback is enabled. +const char kAccessibilitySpokenFeedbackEnabled[] = "settings.accessibility"; +// A boolean pref which determines whether high contrast is enabled. +const char kAccessibilityHighContrastEnabled[] = + "settings.a11y.high_contrast_enabled"; +// A boolean pref which determines whether screen magnifier is enabled. +// NOTE: We previously had prefs named settings.a11y.screen_magnifier_type and +// settings.a11y.screen_magnifier_type2, but we only shipped one type (full). +// See http://crbug.com/170850 for history. +const char kAccessibilityScreenMagnifierEnabled[] = + "settings.a11y.screen_magnifier"; +// A boolean pref which determines whether focus following for screen magnifier +// is enabled. +const char kAccessibilityScreenMagnifierFocusFollowingEnabled[] = + "settings.a11y.screen_magnifier_focus_following"; +// An integer pref which indicates the mouse following mode for screen +// magnifier. This maps to AccessibilityController::MagnifierMouseFollowingMode. +const char kAccessibilityScreenMagnifierMouseFollowingMode[] = + "settings.a11y.screen_magnifier_mouse_following_mode"; +// A boolean pref which determines whether screen magnifier should center +// the text input focus. +const char kAccessibilityScreenMagnifierCenterFocus[] = + "settings.a11y.screen_magnifier_center_focus"; +// A double pref which determines a zooming scale of the screen magnifier. +const char kAccessibilityScreenMagnifierScale[] = + "settings.a11y.screen_magnifier_scale"; +// A boolean pref which determines whether the virtual keyboard is enabled for +// accessibility. This feature is separate from displaying an onscreen keyboard +// due to lack of a physical keyboard. +const char kAccessibilityVirtualKeyboardEnabled[] = + "settings.a11y.virtual_keyboard"; +// A pref that identifies which kind of features are enabled for the Web Kiosk +// session. +const char kAccessibilityVirtualKeyboardFeatures[] = + "settings.a11y.virtual_keyboard_features"; +// A boolean pref which determines whether the mono audio output is enabled for +// accessibility. +const char kAccessibilityMonoAudioEnabled[] = "settings.a11y.mono_audio"; +// A boolean pref which determines whether autoclick is enabled. +const char kAccessibilityAutoclickEnabled[] = "settings.a11y.autoclick"; +// A boolean pref which determines whether the accessibility shortcuts are +// enabled or not. +const char kAccessibilityShortcutsEnabled[] = "settings.a11y.shortcuts_enabled"; +// An integer pref which determines time in ms between when the mouse cursor +// stops and when an autoclick event is triggered. +const char kAccessibilityAutoclickDelayMs[] = + "settings.a11y.autoclick_delay_ms"; +// An integer pref which determines the event type for an autoclick event. This +// maps to AccessibilityController::AutoclickEventType. +const char kAccessibilityAutoclickEventType[] = + "settings.a11y.autoclick_event_type"; +// Whether Autoclick should immediately return to left click after performing +// another event type action, or whether it should stay as the other event type. +const char kAccessibilityAutoclickRevertToLeftClick[] = + "settings.a11y.autoclick_revert_to_left_click"; +// Whether Autoclick should stabilize the cursor movement before a click occurs +// or not. +const char kAccessibilityAutoclickStabilizePosition[] = + "settings.a11y.autoclick_stabilize_position"; +// The default threshold of mouse movement, measured in DIP, that will initiate +// a new autoclick. +const char kAccessibilityAutoclickMovementThreshold[] = + "settings.a11y.autoclick_movement_threshold"; +// The Autoclick menu position on the screen, an AutoclickMenuPosition. +const char kAccessibilityAutoclickMenuPosition[] = + "settings.a11y.autoclick_menu_position"; +// A boolean pref which determines whether caret highlighting is enabled. +const char kAccessibilityCaretHighlightEnabled[] = + "settings.a11y.caret_highlight"; +// A boolean pref which determines whether cursor highlighting is enabled. +const char kAccessibilityCursorHighlightEnabled[] = + "settings.a11y.cursor_highlight"; +// A boolean pref which determines whether custom cursor color is enabled. +const char kAccessibilityCursorColorEnabled[] = + "settings.a11y.cursor_color_enabled"; +// An integer pref which determines the custom cursor color. +const char kAccessibilityCursorColor[] = "settings.a11y.cursor_color"; +// A boolean pref which determines whether floating accessibility menu is +// enabled. +const char kAccessibilityFloatingMenuEnabled[] = "settings.a11y.floating_menu"; +// Floating a11y menu position, a FloatingMenuPosition; +const char kAccessibilityFloatingMenuPosition[] = + "settings.a11y.floating_menu_position"; +// A boolean pref which determines whether focus highlighting is enabled. +const char kAccessibilityFocusHighlightEnabled[] = + "settings.a11y.focus_highlight"; +// A boolean pref which determines whether select-to-speak is enabled. +const char kAccessibilitySelectToSpeakEnabled[] = + "settings.a11y.select_to_speak"; +// A boolean pref which determines whether Switch Access is enabled. +const char kAccessibilitySwitchAccessEnabled[] = + "settings.a11y.switch_access.enabled"; +// A dictionary pref keyed on a key code mapped to a list value of device types +// for the "select" action. +const char kAccessibilitySwitchAccessSelectDeviceKeyCodes[] = + "settings.a11y.switch_access.select.device_key_codes"; +// A dictionary pref keyed on a key code mapped to a list value of device types +// for the "next" action. +const char kAccessibilitySwitchAccessNextDeviceKeyCodes[] = + "settings.a11y.switch_access.next.device_key_codes"; +// A dictionary pref keyed on a key code mapped to a list value of device types +// for the "previous" action. +const char kAccessibilitySwitchAccessPreviousDeviceKeyCodes[] = + "settings.a11y.switch_access.previous.device_key_codes"; +// A boolean pref which determines whether auto-scanning is enabled within +// Switch Access. +const char kAccessibilitySwitchAccessAutoScanEnabled[] = + "settings.a11y.switch_access.auto_scan.enabled"; +// An integer pref which determines time delay in ms before automatically +// scanning forward (when auto-scan is enabled). +const char kAccessibilitySwitchAccessAutoScanSpeedMs[] = + "settings.a11y.switch_access.auto_scan.speed_ms"; +// An integer pref which determines time delay in ms before automatically +// scanning forward while navigating the keyboard (when auto-scan is +// enabled). +const char kAccessibilitySwitchAccessAutoScanKeyboardSpeedMs[] = + "settings.a11y.switch_access.auto_scan.keyboard.speed_ms"; +// An integer pref which determines speed in dips per second that the gliding +// point scan cursor in switch access moves across the screen. +const char kAccessibilitySwitchAccessPointScanSpeedDipsPerSecond[] = + "settings.a11y.switch_access.point_scan.speed_dips_per_second"; +// A boolean pref which, if set, indicates that shelf navigation buttons (home, +// back and overview button) should be shown in tablet mode. Note that shelf +// buttons might be shown even if the pref value is false - for example, if +// spoken feedback, autoclick or switch access are enabled. +const char kAccessibilityTabletModeShelfNavigationButtonsEnabled[] = + "settings.a11y.tablet_mode_shelf_nav_buttons_enabled"; +// A boolean pref which determines whether dictation is enabled. +const char kAccessibilityDictationEnabled[] = "settings.a11y.dictation"; +// A string pref which determines the locale used for dictation speech +// recognition. Should be BCP-47 format, e.g. "en-US" or "es-ES". +const char kAccessibilityDictationLocale[] = "settings.a11y.dictation_locale"; +// A boolean pref which determines whether the accessibility menu shows +// regardless of the state of a11y features. +const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu"; + +// A boolean pref which determines whether alt-tab should show only windows in +// the current desk or all windows. +const char kAltTabPerDesk[] = "ash.alttab.per_desk"; + +// A dictionary storing the number of times and most recent time all contextual +// tooltips have been shown. +const char kContextualTooltips[] = "settings.contextual_tooltip.shown_info"; + +// A list containing the stored virtual desks names in the same order of the +// desks in the overview desks bar. This list will be used to restore the desks, +// their order, and their names for the primary user on first signin. If a desk +// hasn't been renamed by the user (i.e. it uses one of the default +// automatically-assigned desk names such as "Desk 1", "Desk 2", ... etc.), its +// name will appear in this list as an empty string. The desk names are stored +// as UTF8 strings. +const char kDesksNamesList[] = "ash.desks.desks_names_list"; +// This list stores the metrics of virtual desks. Like |kDesksNamesList|, this +// list stores entries in the same order of the desks in the overview desks bar. +// Values are stored as dictionaries. +const char kDesksMetricsList[] = "ash.desks.desks_metrics_list"; +// A dict pref storing the metrics related to the weekly active desks of a user. +const char kDesksWeeklyActiveDesksMetrics[] = "ash.desks.weekly_active_desks"; +// An integer index of a user's active desk. +const char kDesksActiveDesk[] = "ash.desks.active_desk"; + +// A boolean pref storing the enabled status of the Docked Magnifier feature. +const char kDockedMagnifierEnabled[] = "ash.docked_magnifier.enabled"; +// A double pref storing the scale value of the Docked Magnifier feature by +// which the screen is magnified. +const char kDockedMagnifierScale[] = "ash.docked_magnifier.scale"; + +// A boolean pref which indicates whether the docked magnifier confirmation +// dialog has ever been shown. +const char kDockedMagnifierAcceleratorDialogHasBeenAccepted[] = + "settings.a11y.docked_magnifier_accelerator_dialog_has_been_accepted"; +// A boolean pref which indicates whether the high contrast magnifier +// confirmation dialog has ever been shown. +const char kHighContrastAcceleratorDialogHasBeenAccepted[] = + "settings.a11y.high_contrast_accelerator_dialog_has_been_accepted"; +// A boolean pref which indicates whether the screen magnifier confirmation +// dialog has ever been shown. +const char kScreenMagnifierAcceleratorDialogHasBeenAccepted[] = + "settings.a11y.screen_magnifier_accelerator_dialog_has_been_accepted"; +// A boolean pref which indicates whether the dictation confirmation dialog has +// ever been shown. +const char kDictationAcceleratorDialogHasBeenAccepted[] = + "settings.a11y.dictation_accelerator_dialog_has_been_accepted"; +// A boolean pref which indicates whether the display rotation confirmation +// dialog has ever been shown. +// Renamed 10/2019 to force reset the pref to false. +const char kDisplayRotationAcceleratorDialogHasBeenAccepted2[] = + "settings.a11y.display_rotation_accelerator_dialog_has_been_accepted2"; + +// A dictionary pref that stores the mixed mirror mode parameters. +const char kDisplayMixedMirrorModeParams[] = + "settings.display.mixed_mirror_mode_param"; +// Power state of the current displays from the last run. +const char kDisplayPowerState[] = "settings.display.power_state"; +// A dictionary pref that stores per display preferences. +const char kDisplayProperties[] = "settings.display.properties"; +// Boolean controlling whether privacy screen is enabled. +const char kDisplayPrivacyScreenEnabled[] = + "settings.display.privacy_screen_enabled"; +// A dictionary pref that specifies the state of the rotation lock, and the +// display orientation, for the internal display. +const char kDisplayRotationLock[] = "settings.display.rotation_lock"; +// A dictionary pref that stores the touch associations for the device. +const char kDisplayTouchAssociations[] = "settings.display.touch_associations"; +// A dictionary pref that stores the port mapping for touch devices. +const char kDisplayTouchPortAssociations[] = + "settings.display.port_associations"; +// A list pref that stores the mirror info for each external display. +const char kExternalDisplayMirrorInfo[] = + "settings.display.external_display_mirror_info"; +// A dictionary pref that specifies per-display layout/offset information. +// Its key is the ID of the display and its value is a dictionary for the +// layout/offset information. +const char kSecondaryDisplays[] = "settings.display.secondary_displays"; +// A boolean pref which determines whether the display configuration set by +// managed guest session should be stored in local state. +const char kAllowMGSToStoreDisplayProperties[] = + "settings.display.allow_mgs_to_store"; + +// A boolean pref that enable fullscreen alert bubble. +// TODO(zxdan): Change to an allowlist in M89. +const char kFullscreenAlertEnabled[] = "ash.fullscreen_alert_enabled"; + +// A boolean pref storing whether the gesture education notification has ever +// been shown to the user, which we use to stop showing it again. +const char kGestureEducationNotificationShown[] = + "ash.gesture_education.notification_shown"; + +// A boolean pref which stores whether a stylus has been seen before. +const char kHasSeenStylus[] = "ash.has_seen_stylus"; +// A boolean pref which stores whether a the palette warm welcome bubble +// (displayed when a user first uses a stylus) has been shown before. +const char kShownPaletteWelcomeBubble[] = "ash.shown_palette_welcome_bubble"; +// A boolean pref that specifies if the stylus tools should be enabled/disabled. +const char kEnableStylusTools[] = "settings.enable_stylus_tools"; +// A boolean pref that specifies if the ash palette should be launched after an +// eject input event has been received. +const char kLaunchPaletteOnEjectEvent[] = + "settings.launch_palette_on_eject_event"; + +// Boolean pref indicating whether the PCI tunneling is allowed for external +// Thunderbolt/USB4 peripherals. This pref is only used if the policy +// "DevicePciPeripheralDataAccessEnabled" is set to "unset". +const char kLocalStateDevicePeripheralDataAccessEnabled[] = + "settings.local_state_device_pci_data_access_enabled"; + +// A boolean pref that specifies if the cellular setup notification can be +// shown or not. This notification should be shown post-OOBE if the user has a +// cellular-capable device but no available cellular networks. It should only be +// shown at most once per user. +const char kCanCellularSetupNotificationBeShown[] = + "ash.cellular_setup.can_setup_notification_be_shown"; + +// Boolean pref indicating whether the privacy warning of the managed-guest +// session on both; the login screen and inside the auto-launched session, +// should be displayed or not. +const char kManagedGuestSessionPrivacyWarningsEnabled[] = + "managed_session.privacy_warning_enabled"; + +// A string pref storing the type of lock screen notification mode. +// "show" -> show notifications on the lock screen +// "hide" -> hide notifications at all on the lock screen (default) +// "hideSensitive" -> hide sensitive content on the lock screen +// (other values are treated as "hide") +const char kMessageCenterLockScreenMode[] = + "ash.message_center.lock_screen_mode"; + +// Value of each options of the lock screen notification settings. They are +// used the pref of ash::prefs::kMessageCenterLockScreenMode. +const char kMessageCenterLockScreenModeShow[] = "show"; +const char kMessageCenterLockScreenModeHide[] = "hide"; +const char kMessageCenterLockScreenModeHideSensitive[] = "hideSensitive"; + +// A boolean pref storing the enabled status of the ambient color feature. +const char kAmbientColorEnabled[] = "ash.ambient_color.enabled"; + +// A boolean pref used when dark light mode feature is enabled to indicate +// whether the color mode is themed. If true, the background color will be +// calculated based on extracted wallpaper color. +const char kColorModeThemed[] = "ash.dark_mode.color_mode_themed"; + +// A boolean pref that indicates whether dark mode is enabled. +const char kDarkModeEnabled[] = "ash.dark_mode_enabled"; + +// A boolean pref storing the enabled status of the NightLight feature. +const char kNightLightEnabled[] = "ash.night_light.enabled"; + +// A double pref storing the screen color temperature set by the NightLight +// feature. The expected values are in the range of 0.0 (least warm) and 1.0 +// (most warm). +const char kNightLightTemperature[] = "ash.night_light.color_temperature"; + +// An integer pref storing the type of automatic scheduling of turning on and +// off the NightLight feature. Valid values are: +// 0 -> NightLight is never turned on or off automatically. +// 1 -> NightLight is turned on and off at the sunset and sunrise times +// respectively. +// 2 -> NightLight schedule times are explicitly set by the user. +// +// See ash::NightLightController::ScheduleType. +const char kNightLightScheduleType[] = "ash.night_light.schedule_type"; + +// Integer prefs storing the start and end times of the automatic schedule at +// which NightLight turns on and off respectively when the schedule type is set +// to a custom schedule. The times are represented as the number of minutes from +// 00:00 (12:00 AM) regardless of the date or the timezone. +// See ash::TimeOfDayTime. +const char kNightLightCustomStartTime[] = "ash.night_light.custom_start_time"; +const char kNightLightCustomEndTime[] = "ash.night_light.custom_end_time"; + +// Double prefs storing the most recent valid geoposition, which is only used +// when the device lacks connectivity and we're unable to retrieve a valid +// geoposition to calculate the sunset / sunrise times. +const char kNightLightCachedLatitude[] = "ash.night_light.cached_latitude"; +const char kNightLightCachedLongitude[] = "ash.night_light.cached_longitude"; + +// A boolean pref storing whether the AutoNightLight notification has ever been +// dismissed by the user, which we use to stop showing it again. +const char kAutoNightLightNotificationDismissed[] = + "ash.auto_night_light.notification_dismissed"; + +// Whether the Chrome OS lock screen is allowed. +const char kAllowScreenLock[] = "allow_screen_lock"; + +// A boolean pref that turns on automatic screen locking. +const char kEnableAutoScreenLock[] = "settings.enable_screen_lock"; + +// Screen brightness percent values to be used when running on AC power. +// Specified by the policy. +const char kPowerAcScreenBrightnessPercent[] = + "power.ac_screen_brightness_percent"; + +// Inactivity time in milliseconds while the system is on AC power before +// the screen should be dimmed, turned off, or locked, before an +// IdleActionImminent D-Bus signal should be sent, or before +// kPowerAcIdleAction should be performed. 0 disables the delay (N/A for +// kPowerAcIdleDelayMs). +const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms"; +const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms"; +const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms"; +const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms"; + +// Screen brightness percent values to be used when running on battery power. +// Specified by the policy. +const char kPowerBatteryScreenBrightnessPercent[] = + "power.battery_screen_brightness_percent"; + +// Similar delays while the system is on battery power. +const char kPowerBatteryScreenDimDelayMs[] = + "power.battery_screen_dim_delay_ms"; +const char kPowerBatteryScreenOffDelayMs[] = + "power.battery_screen_off_delay_ms"; +const char kPowerBatteryScreenLockDelayMs[] = + "power.battery_screen_lock_delay_ms"; +const char kPowerBatteryIdleWarningDelayMs[] = + "power.battery_idle_warning_delay_ms"; +const char kPowerBatteryIdleDelayMs[] = "power.battery_idle_delay_ms"; +const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms"; + +// Inactivity delays used to dim the screen or turn it off while the screen is +// locked. +const char kPowerLockScreenDimDelayMs[] = "power.lock_screen_dim_delay_ms"; +const char kPowerLockScreenOffDelayMs[] = "power.lock_screen_off_delay_ms"; + +// Action that should be performed when the idle delay is reached while the +// system is on AC power or battery power. +// Values are from the chromeos::PowerPolicyController::Action enum. +const char kPowerAcIdleAction[] = "power.ac_idle_action"; +const char kPowerBatteryIdleAction[] = "power.battery_idle_action"; + +// Action that should be performed when the lid is closed. +// Values are from the chromeos::PowerPolicyController::Action enum. +const char kPowerLidClosedAction[] = "power.lid_closed_action"; + +// Should audio and video activity be used to disable the above delays? +const char kPowerUseAudioActivity[] = "power.use_audio_activity"; +const char kPowerUseVideoActivity[] = "power.use_video_activity"; + +// Should extensions, ARC apps, and other code within Chrome be able to override +// system power management (preventing automatic actions like sleeping, locking, +// or screen dimming)? +const char kPowerAllowWakeLocks[] = "power.allow_wake_locks"; + +// Should extensions, ARC apps, and other code within Chrome be able to override +// display-related power management? (Disallowing wake locks in general takes +// precedence over this.) +const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks"; + +// Amount by which the screen-dim delay should be scaled while the system +// is in presentation mode. Values are limited to a minimum of 1.0. +const char kPowerPresentationScreenDimDelayFactor[] = + "power.presentation_screen_dim_delay_factor"; + +// Amount by which the screen-dim delay should be scaled when user activity is +// observed while the screen is dimmed or soon after the screen has been turned +// off. Values are limited to a minimum of 1.0. +const char kPowerUserActivityScreenDimDelayFactor[] = + "power.user_activity_screen_dim_delay_factor"; + +// Whether the power management delays should start running only after the first +// user activity has been observed in a session. +const char kPowerWaitForInitialUserActivity[] = + "power.wait_for_initial_user_activity"; + +// Boolean controlling whether the panel backlight should be forced to a +// nonzero level when user activity is observed. +const char kPowerForceNonzeroBrightnessForUserActivity[] = + "power.force_nonzero_brightness_for_user_activity"; + +// Boolean controlling whether a shorter suspend delay should be used after the +// user forces the display off by pressing the power button. Provided to allow +// policy to control this behavior. +const char kPowerFastSuspendWhenBacklightsForcedOff[] = + "power.fast_suspend_when_backlights_forced_off"; + +// Boolean controlling whether smart dim model is enabled. +const char kPowerSmartDimEnabled[] = "power.smart_dim_enabled"; + +// Boolean controlling whether ALS logging is enabled. +const char kPowerAlsLoggingEnabled[] = "power.als_logging_enabled"; + +// Boolean controlling whether the settings is enabled. This pref is intended to +// be set only by policy not by user. +const char kOsSettingsEnabled[] = "os_settings_enabled"; + +// |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The +// local variant is not synced and is used if set. If the local variant is not +// set its value is set from the synced value (once prefs have been +// synced). This gives a per-machine setting that is initialized from the last +// set value. +// These values are default on the machine but can be overridden by per-display +// values in kShelfPreferences (unless overridden by managed policy). +// String value corresponding to ash::ShelfAlignment (e.g. "Bottom"). +const char kShelfAlignment[] = "shelf_alignment"; +const char kShelfAlignmentLocal[] = "shelf_alignment_local"; +// String value corresponding to ash::ShelfAutoHideBehavior (e.g. "Never"). +const char kShelfAutoHideBehavior[] = "auto_hide_behavior"; +const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local"; +// Dictionary value that holds per-display preference of shelf alignment and +// auto-hide behavior. Key of the dictionary is the id of the display, and +// its value is a dictionary whose keys are kShelfAlignment and +// kShelfAutoHideBehavior. +const char kShelfPreferences[] = "shelf_preferences"; + +// Boolean pref indicating whether to show a logout button in the system tray. +const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray"; + +// Integer pref indicating the length of time in milliseconds for which a +// confirmation dialog should be shown when the user presses the logout button. +// A value of 0 indicates that logout should happen immediately, without showing +// a confirmation dialog. +const char kLogoutDialogDurationMs[] = "logout_dialog_duration_ms"; + +// A boolean pref that when set to true, displays the logout confirmation +// dialog. If set to false, it prevents showing the dialog and the subsequent +// logout after closing the last window. +const char kSuggestLogoutAfterClosingLastWindow[] = + "suggest_logout_after_closing_last_window"; + +// A dictionary pref that maps usernames to wallpaper info. +const char kUserWallpaperInfo[] = "user_wallpaper_info"; + +// A dictionary pref that maps usernames to wallpaper info. +// This is for wallpapers that are syncable across devices. +const char kSyncableWallpaperInfo[] = "syncable_wallpaper_info"; + +// A dictionary pref that maps wallpaper file paths to their prominent colors. +const char kWallpaperColors[] = "ash.wallpaper.prominent_colors"; + +// String pref storing the collection_id used to query for new wallpapers when +// daily refresh is enabled. +const char kWallpaperCollectionId[] = "ash.wallpaper.collection_id"; + +// Boolean pref indicating whether a user has enabled the bluetooth adapter. +const char kUserBluetoothAdapterEnabled[] = + "ash.user.bluetooth.adapter_enabled"; + +// Boolean pref indicating system-wide setting for bluetooth adapter power. +const char kSystemBluetoothAdapterEnabled[] = + "ash.system.bluetooth.adapter_enabled"; + +// A boolean pref which determines whether tap-dragging is enabled. +const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging"; + +// Boolean prefs for the status of the touchscreen and the touchpad. +const char kTouchpadEnabled[] = "events.touch_pad.enabled"; +const char kTouchscreenEnabled[] = "events.touch_screen.enabled"; + +// String pref storing the salt for the pin quick unlock mechanism. +const char kQuickUnlockPinSalt[] = "quick_unlock.pin.salt"; + +// Dictionary prefs in local state that keeps information about detachable +// bases - for exmaple the last used base per user. +const char kDetachableBaseDevices[] = "ash.detachable_base.devices"; + +// Pref storing the number of sessions in which Assistant onboarding was shown. +const char kAssistantNumSessionsWhereOnboardingShown[] = + "ash.assistant.num_sessions_where_onboarding_shown"; + +// Pref storing the time of the last Assistant interaction. +const char kAssistantTimeOfLastInteraction[] = + "ash.assistant.time_of_last_interaction"; + +// Whether the user is allowed to disconnect and configure VPN connections. +const char kVpnConfigAllowed[] = "vpn_config_allowed"; + +// A boolean pref that indicates whether power peak shift is enabled. +// Ignored unless powerd is configured to honor charging-related prefs. +const char kPowerPeakShiftEnabled[] = "ash.power.peak_shift_enabled"; + +// An integer pref that specifies the power peak shift battery threshold in +// percent. +// Ignored unless powerd is configured to honor charging-related prefs. +const char kPowerPeakShiftBatteryThreshold[] = + "ash.power.peak_shift_battery_threshold"; + +// A dictionary pref that specifies the power peak shift day configs. +// For details see "DevicePowerPeakShiftDayConfig" in policy_templates.json. +// Ignored unless powerd is configured to honor charging-related prefs. +const char kPowerPeakShiftDayConfig[] = "ash.power.peak_shift_day_config"; + +// A boolean pref that indicates whether boot on AC is enabled. +const char kBootOnAcEnabled[] = "ash.power.boot_on_ac_enabled"; + +// A boolean pref that indicates whether advanced battery charge mode is +// enabled. +// Ignored unless powerd is configured to honor charging-related prefs. +const char kAdvancedBatteryChargeModeEnabled[] = + "ash.power.advanced_battery_charge_mode_enabled"; + +// A dictionary pref that specifies the advanced battery charge mode day config. +// For details see "DeviceAdvancedBatteryChargeModeDayConfig" in +// policy_templates.json. +// Ignored unless powerd is configured to honor charging-related prefs. +const char kAdvancedBatteryChargeModeDayConfig[] = + "ash.power.advanced_battery_charge_mode_day_config"; + +// An integer pref that specifies the battery charge mode. +// For details see "DeviceBatteryChargeMode" in policy_templates.json. +// Ignored unless powerd is configured to honor charging-related prefs. +const char kBatteryChargeMode[] = "ash.power.battery_charge_mode"; + +// An integer pref that specifies the battery charge custom start charging in +// percent. +// For details see "DeviceBatteryChargeCustomStartCharging" in +// policy_templates.json. +// Ignored unless powerd is configured to honor charging-related prefs. +const char kBatteryChargeCustomStartCharging[] = + "ash.power.battery_charge_custom_start_charging"; + +// An integer pref that specifies the battery charge custom stop charging in +// percent. +// For details see "DeviceBatteryChargeCustomStopCharging" in +// policy_templates.json. +// Ignored unless powerd is configured to honor charging-related prefs. +const char kBatteryChargeCustomStopCharging[] = + "ash.power.battery_charge_custom_stop_charging"; + +// A boolean pref that indicates whether USB power share is enabled. +// For details see "DeviceUsbPowerShareEnabled" in policy_templates.json. +// Ignored unless powerd is configured to honor charging-related prefs. +const char kUsbPowerShareEnabled[] = "ash.power.usb_power_share_enabled"; + +// An integer pref that specifies how many times the Suggested Content privacy +// info has been shown in Launcher. This value will increment by one every time +// when Launcher changes state from Peeking to Half or FullscreenSearch up to a +// predefined threshold, e.g. six times. If the info has been shown for more +// than the threshold, do not show the privacy info any more. +const char kSuggestedContentInfoShownInLauncher[] = + "ash.launcher.suggested_content_info_shown"; + +// A boolean pref that indicates whether the Suggested Content privacy info may +// be displayed to user. A false value indicates that the info can be displayed +// if the value of |kSuggestedContentInfoShownInLauncher| is smaller than the +// predefined threshold. A true value implies that the user has dismissed the +// info view, and do not show the privacy info any more. +const char kSuggestedContentInfoDismissedInLauncher[] = + "ash.launcher.suggested_content_info_dismissed"; + +// A boolean pref that indicates whether lock screen media controls are enabled. +// Controlled by user policy. +const char kLockScreenMediaControlsEnabled[] = + "ash.lock_screen_media_controls_enabled"; + +// Boolean pref which determines whether key repeat is enabled. +const char kXkbAutoRepeatEnabled[] = + "settings.language.xkb_auto_repeat_enabled_r2"; + +// Integer pref which determines key repeat delay (in ms). +const char kXkbAutoRepeatDelay[] = "settings.language.xkb_auto_repeat_delay_r2"; + +// Integer pref which determines key repeat interval (in ms). +const char kXkbAutoRepeatInterval[] = + "settings.language.xkb_auto_repeat_interval_r2"; +// "_r2" suffixes were added to the three prefs above when we changed the +// preferences to not be user-configurable or sync with the cloud. The prefs are +// now user-configurable and syncable again, but we don't want to overwrite the +// current values with the old synced values, so we continue to use this suffix. + +// A boolean pref which is true if touchpad reverse scroll is enabled. +const char kNaturalScroll[] = "settings.touchpad.natural_scroll"; +// A boolean pref which is true if mouse reverse scroll is enabled. +const char kMouseReverseScroll[] = "settings.mouse.reverse_scroll"; + +// A dictionary storing the number of times and most recent time the multipaste +// contextual nudge was shown. +const char kMultipasteNudges[] = "ash.clipboard.multipaste_nudges"; + +// A boolean pref that indicates whether app badging is shown in launcher and +// shelf. +const char kAppNotificationBadgingEnabled[] = + "ash.app_notification_badging_enabled"; + +// An integer pref that indicates whether global media controls is pinned to +// shelf or it's unset and need to be determined by screen size during runtime. +const char kGlobalMediaControlsPinned[] = + "ash.system.global_media_controls_pinned"; + +// An integer pref that tracks how many times the user is able to click on +// PciePeripheral-related notifications before hiding new notifications. +const char kPciePeripheralDisplayNotificationRemaining[] = + "ash.pcie_peripheral_display_notification_remaining"; + +// Boolean prefs storing whether various IME-related keyboard shortcut reminders +// have previously been dismissed or not. +const char kLastUsedImeShortcutReminderDismissed[] = + "ash.shortcut_reminders.last_used_ime_dismissed"; +const char kNextImeShortcutReminderDismissed[] = + "ash.shortcut_reminders.next_ime_dismissed"; + +// An integet pref that tracks how many times the user has been shown the +// notification about shortcuts changing. +const char kImprovedShortcutsNotificationShownCount[] = + "ash.improved_shortcuts_notification_shown_count"; + +// NOTE: New prefs should start with the "ash." prefix. Existing prefs moved +// into this file should not be renamed, since they may be synced. + } // namespace prefs } // namespace ash diff --git a/ash/constants/ash_pref_names.h b/ash/constants/ash_pref_names.h index 528f60a32d7f45..570f11a6efe4a5 100644 --- a/ash/constants/ash_pref_names.h +++ b/ash/constants/ash_pref_names.h @@ -69,6 +69,305 @@ extern const char kLauncherSearchNormalizerParameters[]; COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kDeviceSystemWideTracingEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityLargeCursorEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityLargeCursorDipSize[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityStickyKeysEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilitySpokenFeedbackEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityHighContrastEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityScreenMagnifierCenterFocus[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityScreenMagnifierEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityScreenMagnifierFocusFollowingEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityScreenMagnifierMouseFollowingMode[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityScreenMagnifierScale[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityVirtualKeyboardEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityVirtualKeyboardFeatures[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityMonoAudioEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityAutoclickEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityShortcutsEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityAutoclickDelayMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityAutoclickEventType[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityAutoclickRevertToLeftClick[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityAutoclickStabilizePosition[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityAutoclickMovementThreshold[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityAutoclickMenuPosition[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityCaretHighlightEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityCursorHighlightEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityCursorColorEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kAccessibilityCursorColor[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityFloatingMenuEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityFloatingMenuPosition[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityFocusHighlightEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilitySelectToSpeakEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilitySwitchAccessEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilitySwitchAccessSelectDeviceKeyCodes[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilitySwitchAccessNextDeviceKeyCodes[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilitySwitchAccessPreviousDeviceKeyCodes[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilitySwitchAccessAutoScanEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilitySwitchAccessAutoScanSpeedMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilitySwitchAccessAutoScanKeyboardSpeedMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilitySwitchAccessPointScanSpeedDipsPerSecond[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityTabletModeShelfNavigationButtonsEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityDictationEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAccessibilityDictationLocale[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kShouldAlwaysShowAccessibilityMenu[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kAltTabPerDesk[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kContextualTooltips[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kDesksNamesList[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kDesksMetricsList[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kDesksWeeklyActiveDesksMetrics[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kDesksActiveDesk[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kDockedMagnifierEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kDockedMagnifierScale[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kDockedMagnifierAcceleratorDialogHasBeenAccepted[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kHighContrastAcceleratorDialogHasBeenAccepted[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kScreenMagnifierAcceleratorDialogHasBeenAccepted[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kDictationAcceleratorDialogHasBeenAccepted[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kDisplayRotationAcceleratorDialogHasBeenAccepted[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kDisplayRotationAcceleratorDialogHasBeenAccepted2[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kDisplayMixedMirrorModeParams[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kDisplayPowerState[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kDisplayPrivacyScreenEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kDisplayProperties[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kDisplayRotationLock[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kDisplayTouchAssociations[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kDisplayTouchPortAssociations[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kExternalDisplayMirrorInfo[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kSecondaryDisplays[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAllowMGSToStoreDisplayProperties[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kFullscreenAlertEnabled[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kGestureEducationNotificationShown[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kHasSeenStylus[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kShownPaletteWelcomeBubble[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kEnableStylusTools[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kLaunchPaletteOnEjectEvent[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kLocalStateDevicePeripheralDataAccessEnabled[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kCanCellularSetupNotificationBeShown[]; + +// Managed-guest session privacy warning. +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kManagedGuestSessionPrivacyWarningsEnabled[]; + +// Lock screen notification settings. +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kMessageCenterLockScreenMode[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kMessageCenterLockScreenModeShow[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kMessageCenterLockScreenModeHide[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kMessageCenterLockScreenModeHideSensitive[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kAmbientColorEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kColorModeThemed[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kDarkModeEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kNightLightEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kNightLightTemperature[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kNightLightScheduleType[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kNightLightCustomStartTime[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kNightLightCustomEndTime[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kNightLightCachedLatitude[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kNightLightCachedLongitude[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAutoNightLightNotificationDismissed[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kOsSettingsEnabled[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kAllowScreenLock[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kEnableAutoScreenLock[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kPowerAcScreenBrightnessPercent[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerAcScreenDimDelayMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerAcScreenOffDelayMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerAcScreenLockDelayMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerAcIdleWarningDelayMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerAcIdleDelayMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kPowerBatteryScreenBrightnessPercent[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kPowerBatteryScreenDimDelayMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kPowerBatteryScreenOffDelayMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kPowerBatteryScreenLockDelayMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kPowerBatteryIdleWarningDelayMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerBatteryIdleDelayMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerLockScreenDimDelayMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerLockScreenOffDelayMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerAcIdleAction[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerBatteryIdleAction[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerLidClosedAction[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerUseAudioActivity[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerUseVideoActivity[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerAllowWakeLocks[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerAllowScreenWakeLocks[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kPowerPresentationScreenDimDelayFactor[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kPowerUserActivityScreenDimDelayFactor[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kPowerWaitForInitialUserActivity[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kPowerForceNonzeroBrightnessForUserActivity[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kPowerFastSuspendWhenBacklightsForcedOff[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerSmartDimEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerAlsLoggingEnabled[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kShelfAlignment[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kShelfAlignmentLocal[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kShelfAutoHideBehavior[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kShelfAutoHideBehaviorLocal[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kShelfPreferences[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kShowLogoutButtonInTray[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kLogoutDialogDurationMs[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kSuggestLogoutAfterClosingLastWindow[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kUserWallpaperInfo[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kWallpaperColors[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kSyncableWallpaperInfo[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kWallpaperCollectionId[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kUserBluetoothAdapterEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kSystemBluetoothAdapterEnabled[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kTapDraggingEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kTouchpadEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kTouchscreenEnabled[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kQuickUnlockPinSalt[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kDetachableBaseDevices[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kCursorMotionBlurEnabled[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAssistantNumSessionsWhereOnboardingShown[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAssistantTimeOfLastInteraction[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kVpnConfigAllowed[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerPeakShiftEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kPowerPeakShiftBatteryThreshold[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kPowerPeakShiftDayConfig[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kBootOnAcEnabled[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAdvancedBatteryChargeModeEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAdvancedBatteryChargeModeDayConfig[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kBatteryChargeMode[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kBatteryChargeCustomStartCharging[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kBatteryChargeCustomStopCharging[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kUsbPowerShareEnabled[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kSuggestedContentInfoShownInLauncher[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kSuggestedContentInfoDismissedInLauncher[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kLockScreenMediaControlsEnabled[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kXkbAutoRepeatDelay[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kXkbAutoRepeatEnabled[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kXkbAutoRepeatInterval[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kNaturalScroll[]; +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kMouseReverseScroll[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kMultipasteNudges[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kAppNotificationBadgingEnabled[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) extern const char kGlobalMediaControlsPinned[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kPciePeripheralDisplayNotificationRemaining[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kLastUsedImeShortcutReminderDismissed[]; +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kNextImeShortcutReminderDismissed[]; + +COMPONENT_EXPORT(ASH_CONSTANTS) +extern const char kImprovedShortcutsNotificationShownCount[]; + } // namespace prefs } // namespace ash diff --git a/ash/detachable_base/detachable_base_handler.cc b/ash/detachable_base/detachable_base_handler.cc index ff6e06ece596db..5980efbad6791f 100644 --- a/ash/detachable_base/detachable_base_handler.cc +++ b/ash/detachable_base/detachable_base_handler.cc @@ -4,8 +4,8 @@ #include "ash/detachable_base/detachable_base_handler.h" +#include "ash/constants/ash_pref_names.h" #include "ash/detachable_base/detachable_base_observer.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/session/user_info.h" #include "ash/shell.h" #include "base/bind.h" diff --git a/ash/display/cursor_window_controller.cc b/ash/display/cursor_window_controller.cc index 98215e4923a236..09da0e063d106d 100644 --- a/ash/display/cursor_window_controller.cc +++ b/ash/display/cursor_window_controller.cc @@ -11,12 +11,12 @@ #include "ash/capture_mode/capture_mode_session.h" #include "ash/constants/ash_constants.h" #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" #include "ash/display/display_color_manager.h" #include "ash/display/mirror_window_controller.h" #include "ash/display/window_tree_host_manager.h" #include "ash/fast_ink/cursor/cursor_view.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/shell_window_ids.h" #include "ash/root_window_controller.h" #include "ash/session/session_controller_impl.h" diff --git a/ash/display/cursor_window_controller_unittest.cc b/ash/display/cursor_window_controller_unittest.cc index 75d6e836ed1275..86a0fbe8231cb1 100644 --- a/ash/display/cursor_window_controller_unittest.cc +++ b/ash/display/cursor_window_controller_unittest.cc @@ -8,9 +8,9 @@ #include "ash/accessibility/accessibility_controller_impl.h" #include "ash/constants/ash_constants.h" +#include "ash/constants/ash_pref_names.h" #include "ash/display/display_util.h" #include "ash/display/window_tree_host_manager.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "ash/test/ash_test_base.h" diff --git a/ash/display/display_prefs.cc b/ash/display/display_prefs.cc index 0903f6539f2c62..476f69c5719703 100644 --- a/ash/display/display_prefs.cc +++ b/ash/display/display_prefs.cc @@ -8,8 +8,8 @@ #include +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "base/command_line.h" diff --git a/ash/display/display_prefs_unittest.cc b/ash/display/display_prefs_unittest.cc index f9efc1b8a2a143..1dfe9e0b1abc6d 100644 --- a/ash/display/display_prefs_unittest.cc +++ b/ash/display/display_prefs_unittest.cc @@ -11,13 +11,13 @@ #include #include +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" #include "ash/display/display_configuration_observer.h" #include "ash/display/display_util.h" #include "ash/display/resolution_notification_controller.h" #include "ash/display/screen_orientation_controller.h" #include "ash/display/window_tree_host_manager.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/session/test_session_controller_client.h" #include "ash/shell.h" #include "ash/test/ash_test_base.h" diff --git a/ash/display/privacy_screen_controller.cc b/ash/display/privacy_screen_controller.cc index aba370338df8a0..87e220828b3add 100644 --- a/ash/display/privacy_screen_controller.cc +++ b/ash/display/privacy_screen_controller.cc @@ -4,7 +4,7 @@ #include "ash/display/privacy_screen_controller.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "base/bind.h" diff --git a/ash/display/privacy_screen_controller_unittest.cc b/ash/display/privacy_screen_controller_unittest.cc index 1ea52c80f26709..4b71c3bf01f5a9 100644 --- a/ash/display/privacy_screen_controller_unittest.cc +++ b/ash/display/privacy_screen_controller_unittest.cc @@ -3,7 +3,7 @@ // found in the LICENSE file. #include "ash/display/privacy_screen_controller.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "ash/test/ash_test_base.h" diff --git a/ash/fast_ink/fast_ink_pointer_controller.cc b/ash/fast_ink/fast_ink_pointer_controller.cc index d57de71d6c72dd..13388d6df07759 100644 --- a/ash/fast_ink/fast_ink_pointer_controller.cc +++ b/ash/fast_ink/fast_ink_pointer_controller.cc @@ -4,7 +4,7 @@ #include "ash/fast_ink/fast_ink_pointer_controller.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/shell.h" #include "base/bind.h" #include "components/prefs/pref_change_registrar.h" diff --git a/ash/fast_ink/laser/laser_pointer_controller_unittest.cc b/ash/fast_ink/laser/laser_pointer_controller_unittest.cc index fbf769743348d0..e8faf338e9f3e7 100644 --- a/ash/fast_ink/laser/laser_pointer_controller_unittest.cc +++ b/ash/fast_ink/laser/laser_pointer_controller_unittest.cc @@ -4,10 +4,10 @@ #include "ash/fast_ink/laser/laser_pointer_controller.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" #include "ash/fast_ink/laser/laser_pointer_controller_test_api.h" #include "ash/fast_ink/laser/laser_pointer_view.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/stylus_utils.h" #include "ash/shell.h" #include "ash/test/ash_test_base.h" diff --git a/ash/keyboard/keyboard_controller_impl.cc b/ash/keyboard/keyboard_controller_impl.cc index 9bb2d07258a080..46770bf50f8880 100644 --- a/ash/keyboard/keyboard_controller_impl.cc +++ b/ash/keyboard/keyboard_controller_impl.cc @@ -7,10 +7,10 @@ #include #include "ash/constants/ash_constants.h" +#include "ash/constants/ash_pref_names.h" #include "ash/keyboard/ui/keyboard_ui_controller.h" #include "ash/keyboard/ui/keyboard_ui_factory.h" #include "ash/keyboard/virtual_keyboard_controller.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/keyboard/keyboard_switches.h" #include "ash/public/cpp/shell_window_ids.h" #include "ash/root_window_controller.h" diff --git a/ash/keyboard/keyboard_controller_impl_unittest.cc b/ash/keyboard/keyboard_controller_impl_unittest.cc index aeaede302999c8..cacb8e7c9b7763 100644 --- a/ash/keyboard/keyboard_controller_impl_unittest.cc +++ b/ash/keyboard/keyboard_controller_impl_unittest.cc @@ -8,10 +8,10 @@ #include #include +#include "ash/constants/ash_pref_names.h" #include "ash/keyboard/ui/container_behavior.h" #include "ash/keyboard/ui/keyboard_ui_controller.h" #include "ash/keyboard/ui/test/keyboard_test_util.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/keyboard/keyboard_controller.h" #include "ash/public/cpp/test/test_keyboard_controller_observer.h" #include "ash/session/session_controller_impl.h" diff --git a/ash/login/login_screen_controller.cc b/ash/login/login_screen_controller.cc index 671ec86b68abe8..70d79813d17598 100644 --- a/ash/login/login_screen_controller.cc +++ b/ash/login/login_screen_controller.cc @@ -6,11 +6,11 @@ #include +#include "ash/constants/ash_pref_names.h" #include "ash/focus_cycler.h" #include "ash/login/security_token_request_controller.h" #include "ash/login/ui/lock_screen.h" #include "ash/login/ui/login_data_dispatcher.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/child_accounts/parent_access_controller.h" #include "ash/public/cpp/login_screen_client.h" #include "ash/public/cpp/toast_data.h" diff --git a/ash/login/login_screen_controller_unittest.cc b/ash/login/login_screen_controller_unittest.cc index d7daf67495dea2..20010fd6734b0e 100644 --- a/ash/login/login_screen_controller_unittest.cc +++ b/ash/login/login_screen_controller_unittest.cc @@ -4,9 +4,9 @@ #include "ash/login/login_screen_controller.h" +#include "ash/constants/ash_pref_names.h" #include "ash/login/mock_login_screen_client.h" #include "ash/login/ui/lock_screen.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/root_window_controller.h" #include "ash/session/session_controller_impl.h" #include "ash/session/test_session_controller_client.h" diff --git a/ash/login/ui/lock_contents_view_unittest.cc b/ash/login/ui/lock_contents_view_unittest.cc index 27435f2f4962ee..e1e82c7a4d8fa1 100644 --- a/ash/login/ui/lock_contents_view_unittest.cc +++ b/ash/login/ui/lock_contents_view_unittest.cc @@ -11,6 +11,7 @@ #include "ash/child_accounts/parent_access_controller_impl.h" #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/detachable_base/detachable_base_pairing_status.h" #include "ash/login/login_screen_controller.h" #include "ash/login/mock_login_screen_client.h" @@ -30,7 +31,6 @@ #include "ash/login/ui/login_user_view.h" #include "ash/login/ui/scrollable_users_list_view.h" #include "ash/login/ui/views_utils.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/login_screen_test_api.h" #include "ash/public/mojom/tray_action.mojom.h" #include "ash/root_window_controller.h" diff --git a/ash/login/ui/login_expanded_public_account_view.cc b/ash/login/ui/login_expanded_public_account_view.cc index deb3f0ba6d800b..078d94c626a014 100644 --- a/ash/login/ui/login_expanded_public_account_view.cc +++ b/ash/login/ui/login_expanded_public_account_view.cc @@ -8,13 +8,13 @@ #include #include +#include "ash/constants/ash_pref_names.h" #include "ash/login/login_screen_controller.h" #include "ash/login/ui/arrow_button_view.h" #include "ash/login/ui/login_button.h" #include "ash/login/ui/login_user_view.h" #include "ash/login/ui/public_account_monitoring_info_dialog.h" #include "ash/login/ui/views_utils.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/login_types.h" #include "ash/resources/vector_icons/vector_icons.h" #include "ash/shell.h" diff --git a/ash/media/media_controller_impl.cc b/ash/media/media_controller_impl.cc index 33135ce81989fd..24daadd93a8c8c 100644 --- a/ash/media/media_controller_impl.cc +++ b/ash/media/media_controller_impl.cc @@ -5,7 +5,7 @@ #include "ash/media/media_controller_impl.h" #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/media_client.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" diff --git a/ash/media/media_controller_unittest.cc b/ash/media/media_controller_unittest.cc index 9ae3d7ed15c927..af525127c31d93 100644 --- a/ash/media/media_controller_unittest.cc +++ b/ash/media/media_controller_unittest.cc @@ -7,7 +7,7 @@ #include #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "ash/test/ash_test_base.h" diff --git a/ash/metrics/user_metrics_recorder.cc b/ash/metrics/user_metrics_recorder.cc index 82944759a1cf20..2951224b9e3def 100644 --- a/ash/metrics/user_metrics_recorder.cc +++ b/ash/metrics/user_metrics_recorder.cc @@ -8,12 +8,12 @@ #include #include "ash/app_list/app_list_metrics.h" +#include "ash/constants/ash_pref_names.h" #include "ash/login/ui/lock_screen.h" #include "ash/metrics/demo_session_metrics_recorder.h" #include "ash/metrics/desktop_task_switch_metric_recorder.h" #include "ash/metrics/pointer_metrics_recorder.h" #include "ash/public/cpp/accessibility_controller_enums.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/shelf_item.h" #include "ash/public/cpp/shelf_model.h" #include "ash/public/cpp/shell_window_ids.h" diff --git a/ash/policy/policy_recommendation_restorer_unittest.cc b/ash/policy/policy_recommendation_restorer_unittest.cc index eadc02cc678f2e..d57c0bc36072be 100644 --- a/ash/policy/policy_recommendation_restorer_unittest.cc +++ b/ash/policy/policy_recommendation_restorer_unittest.cc @@ -4,7 +4,7 @@ #include "ash/policy/policy_recommendation_restorer.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/ash_prefs.h" #include "ash/session/session_controller_impl.h" #include "ash/session/test_session_controller_client.h" diff --git a/ash/public/cpp/BUILD.gn b/ash/public/cpp/BUILD.gn index 7b45ce49950738..0fe716f3c7dae7 100644 --- a/ash/public/cpp/BUILD.gn +++ b/ash/public/cpp/BUILD.gn @@ -61,8 +61,6 @@ component("cpp") { "arc_app_id_provider.h", "arc_resize_lock_type.h", "ash_constants.h", - "ash_pref_names.cc", - "ash_pref_names.h", "ash_public_export.h", "ash_typography.cc", "ash_typography.h", diff --git a/ash/public/cpp/ash_pref_names.cc b/ash/public/cpp/ash_pref_names.cc deleted file mode 100644 index eee0635bb04b81..00000000000000 --- a/ash/public/cpp/ash_pref_names.cc +++ /dev/null @@ -1,660 +0,0 @@ -// Copyright 2017 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 "ash/public/cpp/ash_pref_names.h" - -namespace ash { - -namespace prefs { - -// A boolean pref which determines whether the large cursor feature is enabled. -const char kAccessibilityLargeCursorEnabled[] = - "settings.a11y.large_cursor_enabled"; -// An integer pref that specifies the size of large cursor for accessibility. -const char kAccessibilityLargeCursorDipSize[] = - "settings.a11y.large_cursor_dip_size"; -// A boolean pref which determines whether the sticky keys feature is enabled. -const char kAccessibilityStickyKeysEnabled[] = - "settings.a11y.sticky_keys_enabled"; -// A boolean pref which determines whether spoken feedback is enabled. -const char kAccessibilitySpokenFeedbackEnabled[] = "settings.accessibility"; -// A boolean pref which determines whether high contrast is enabled. -const char kAccessibilityHighContrastEnabled[] = - "settings.a11y.high_contrast_enabled"; -// A boolean pref which determines whether screen magnifier is enabled. -// NOTE: We previously had prefs named settings.a11y.screen_magnifier_type and -// settings.a11y.screen_magnifier_type2, but we only shipped one type (full). -// See http://crbug.com/170850 for history. -const char kAccessibilityScreenMagnifierEnabled[] = - "settings.a11y.screen_magnifier"; -// A boolean pref which determines whether focus following for screen magnifier -// is enabled. -const char kAccessibilityScreenMagnifierFocusFollowingEnabled[] = - "settings.a11y.screen_magnifier_focus_following"; -// An integer pref which indicates the mouse following mode for screen -// magnifier. This maps to AccessibilityController::MagnifierMouseFollowingMode. -const char kAccessibilityScreenMagnifierMouseFollowingMode[] = - "settings.a11y.screen_magnifier_mouse_following_mode"; -// A boolean pref which determines whether screen magnifier should center -// the text input focus. -const char kAccessibilityScreenMagnifierCenterFocus[] = - "settings.a11y.screen_magnifier_center_focus"; -// A double pref which determines a zooming scale of the screen magnifier. -const char kAccessibilityScreenMagnifierScale[] = - "settings.a11y.screen_magnifier_scale"; -// A boolean pref which determines whether the virtual keyboard is enabled for -// accessibility. This feature is separate from displaying an onscreen keyboard -// due to lack of a physical keyboard. -const char kAccessibilityVirtualKeyboardEnabled[] = - "settings.a11y.virtual_keyboard"; -// A pref that identifies which kind of features are enabled for the Web Kiosk -// session. -const char kAccessibilityVirtualKeyboardFeatures[] = - "settings.a11y.virtual_keyboard_features"; -// A boolean pref which determines whether the mono audio output is enabled for -// accessibility. -const char kAccessibilityMonoAudioEnabled[] = "settings.a11y.mono_audio"; -// A boolean pref which determines whether autoclick is enabled. -const char kAccessibilityAutoclickEnabled[] = "settings.a11y.autoclick"; -// A boolean pref which determines whether the accessibility shortcuts are -// enabled or not. -const char kAccessibilityShortcutsEnabled[] = "settings.a11y.shortcuts_enabled"; -// An integer pref which determines time in ms between when the mouse cursor -// stops and when an autoclick event is triggered. -const char kAccessibilityAutoclickDelayMs[] = - "settings.a11y.autoclick_delay_ms"; -// An integer pref which determines the event type for an autoclick event. This -// maps to AccessibilityController::AutoclickEventType. -const char kAccessibilityAutoclickEventType[] = - "settings.a11y.autoclick_event_type"; -// Whether Autoclick should immediately return to left click after performing -// another event type action, or whether it should stay as the other event type. -const char kAccessibilityAutoclickRevertToLeftClick[] = - "settings.a11y.autoclick_revert_to_left_click"; -// Whether Autoclick should stabilize the cursor movement before a click occurs -// or not. -const char kAccessibilityAutoclickStabilizePosition[] = - "settings.a11y.autoclick_stabilize_position"; -// The default threshold of mouse movement, measured in DIP, that will initiate -// a new autoclick. -const char kAccessibilityAutoclickMovementThreshold[] = - "settings.a11y.autoclick_movement_threshold"; -// The Autoclick menu position on the screen, an AutoclickMenuPosition. -const char kAccessibilityAutoclickMenuPosition[] = - "settings.a11y.autoclick_menu_position"; -// A boolean pref which determines whether caret highlighting is enabled. -const char kAccessibilityCaretHighlightEnabled[] = - "settings.a11y.caret_highlight"; -// A boolean pref which determines whether cursor highlighting is enabled. -const char kAccessibilityCursorHighlightEnabled[] = - "settings.a11y.cursor_highlight"; -// A boolean pref which determines whether custom cursor color is enabled. -const char kAccessibilityCursorColorEnabled[] = - "settings.a11y.cursor_color_enabled"; -// An integer pref which determines the custom cursor color. -const char kAccessibilityCursorColor[] = "settings.a11y.cursor_color"; -// A boolean pref which determines whether floating accessibility menu is -// enabled. -const char kAccessibilityFloatingMenuEnabled[] = "settings.a11y.floating_menu"; -// Floating a11y menu position, a FloatingMenuPosition; -const char kAccessibilityFloatingMenuPosition[] = - "settings.a11y.floating_menu_position"; -// A boolean pref which determines whether focus highlighting is enabled. -const char kAccessibilityFocusHighlightEnabled[] = - "settings.a11y.focus_highlight"; -// A boolean pref which determines whether select-to-speak is enabled. -const char kAccessibilitySelectToSpeakEnabled[] = - "settings.a11y.select_to_speak"; -// A boolean pref which determines whether Switch Access is enabled. -const char kAccessibilitySwitchAccessEnabled[] = - "settings.a11y.switch_access.enabled"; -// A dictionary pref keyed on a key code mapped to a list value of device types -// for the "select" action. -const char kAccessibilitySwitchAccessSelectDeviceKeyCodes[] = - "settings.a11y.switch_access.select.device_key_codes"; -// A dictionary pref keyed on a key code mapped to a list value of device types -// for the "next" action. -const char kAccessibilitySwitchAccessNextDeviceKeyCodes[] = - "settings.a11y.switch_access.next.device_key_codes"; -// A dictionary pref keyed on a key code mapped to a list value of device types -// for the "previous" action. -const char kAccessibilitySwitchAccessPreviousDeviceKeyCodes[] = - "settings.a11y.switch_access.previous.device_key_codes"; -// A boolean pref which determines whether auto-scanning is enabled within -// Switch Access. -const char kAccessibilitySwitchAccessAutoScanEnabled[] = - "settings.a11y.switch_access.auto_scan.enabled"; -// An integer pref which determines time delay in ms before automatically -// scanning forward (when auto-scan is enabled). -const char kAccessibilitySwitchAccessAutoScanSpeedMs[] = - "settings.a11y.switch_access.auto_scan.speed_ms"; -// An integer pref which determines time delay in ms before automatically -// scanning forward while navigating the keyboard (when auto-scan is -// enabled). -const char kAccessibilitySwitchAccessAutoScanKeyboardSpeedMs[] = - "settings.a11y.switch_access.auto_scan.keyboard.speed_ms"; -// An integer pref which determines speed in dips per second that the gliding -// point scan cursor in switch access moves across the screen. -const char kAccessibilitySwitchAccessPointScanSpeedDipsPerSecond[] = - "settings.a11y.switch_access.point_scan.speed_dips_per_second"; -// A boolean pref which, if set, indicates that shelf navigation buttons (home, -// back and overview button) should be shown in tablet mode. Note that shelf -// buttons might be shown even if the pref value is false - for example, if -// spoken feedback, autoclick or switch access are enabled. -const char kAccessibilityTabletModeShelfNavigationButtonsEnabled[] = - "settings.a11y.tablet_mode_shelf_nav_buttons_enabled"; -// A boolean pref which determines whether dictation is enabled. -const char kAccessibilityDictationEnabled[] = "settings.a11y.dictation"; -// A string pref which determines the locale used for dictation speech -// recognition. Should be BCP-47 format, e.g. "en-US" or "es-ES". -const char kAccessibilityDictationLocale[] = "settings.a11y.dictation_locale"; -// A boolean pref which determines whether the accessibility menu shows -// regardless of the state of a11y features. -const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu"; - -// A boolean pref which determines whether alt-tab should show only windows in -// the current desk or all windows. -const char kAltTabPerDesk[] = "ash.alttab.per_desk"; - -// A dictionary storing the number of times and most recent time all contextual -// tooltips have been shown. -const char kContextualTooltips[] = "settings.contextual_tooltip.shown_info"; - -// A list containing the stored virtual desks names in the same order of the -// desks in the overview desks bar. This list will be used to restore the desks, -// their order, and their names for the primary user on first signin. If a desk -// hasn't been renamed by the user (i.e. it uses one of the default -// automatically-assigned desk names such as "Desk 1", "Desk 2", ... etc.), its -// name will appear in this list as an empty string. The desk names are stored -// as UTF8 strings. -const char kDesksNamesList[] = "ash.desks.desks_names_list"; -// This list stores the metrics of virtual desks. Like |kDesksNamesList|, this -// list stores entries in the same order of the desks in the overview desks bar. -// Values are stored as dictionaries. -const char kDesksMetricsList[] = "ash.desks.desks_metrics_list"; -// A dict pref storing the metrics related to the weekly active desks of a user. -const char kDesksWeeklyActiveDesksMetrics[] = "ash.desks.weekly_active_desks"; -// An integer index of a user's active desk. -const char kDesksActiveDesk[] = "ash.desks.active_desk"; - -// A boolean pref storing the enabled status of the Docked Magnifier feature. -const char kDockedMagnifierEnabled[] = "ash.docked_magnifier.enabled"; -// A double pref storing the scale value of the Docked Magnifier feature by -// which the screen is magnified. -const char kDockedMagnifierScale[] = "ash.docked_magnifier.scale"; - -// A boolean pref which indicates whether the docked magnifier confirmation -// dialog has ever been shown. -const char kDockedMagnifierAcceleratorDialogHasBeenAccepted[] = - "settings.a11y.docked_magnifier_accelerator_dialog_has_been_accepted"; -// A boolean pref which indicates whether the high contrast magnifier -// confirmation dialog has ever been shown. -const char kHighContrastAcceleratorDialogHasBeenAccepted[] = - "settings.a11y.high_contrast_accelerator_dialog_has_been_accepted"; -// A boolean pref which indicates whether the screen magnifier confirmation -// dialog has ever been shown. -const char kScreenMagnifierAcceleratorDialogHasBeenAccepted[] = - "settings.a11y.screen_magnifier_accelerator_dialog_has_been_accepted"; -// A boolean pref which indicates whether the dictation confirmation dialog has -// ever been shown. -const char kDictationAcceleratorDialogHasBeenAccepted[] = - "settings.a11y.dictation_accelerator_dialog_has_been_accepted"; -// A boolean pref which indicates whether the display rotation confirmation -// dialog has ever been shown. -// Renamed 10/2019 to force reset the pref to false. -const char kDisplayRotationAcceleratorDialogHasBeenAccepted2[] = - "settings.a11y.display_rotation_accelerator_dialog_has_been_accepted2"; - -// A dictionary pref that stores the mixed mirror mode parameters. -const char kDisplayMixedMirrorModeParams[] = - "settings.display.mixed_mirror_mode_param"; -// Power state of the current displays from the last run. -const char kDisplayPowerState[] = "settings.display.power_state"; -// A dictionary pref that stores per display preferences. -const char kDisplayProperties[] = "settings.display.properties"; -// Boolean controlling whether privacy screen is enabled. -const char kDisplayPrivacyScreenEnabled[] = - "settings.display.privacy_screen_enabled"; -// A dictionary pref that specifies the state of the rotation lock, and the -// display orientation, for the internal display. -const char kDisplayRotationLock[] = "settings.display.rotation_lock"; -// A dictionary pref that stores the touch associations for the device. -const char kDisplayTouchAssociations[] = "settings.display.touch_associations"; -// A dictionary pref that stores the port mapping for touch devices. -const char kDisplayTouchPortAssociations[] = - "settings.display.port_associations"; -// A list pref that stores the mirror info for each external display. -const char kExternalDisplayMirrorInfo[] = - "settings.display.external_display_mirror_info"; -// A dictionary pref that specifies per-display layout/offset information. -// Its key is the ID of the display and its value is a dictionary for the -// layout/offset information. -const char kSecondaryDisplays[] = "settings.display.secondary_displays"; -// A boolean pref which determines whether the display configuration set by -// managed guest session should be stored in local state. -const char kAllowMGSToStoreDisplayProperties[] = - "settings.display.allow_mgs_to_store"; - -// A boolean pref that enable fullscreen alert bubble. -// TODO(zxdan): Change to an allowlist in M89. -const char kFullscreenAlertEnabled[] = "ash.fullscreen_alert_enabled"; - -// A boolean pref storing whether the gesture education notification has ever -// been shown to the user, which we use to stop showing it again. -const char kGestureEducationNotificationShown[] = - "ash.gesture_education.notification_shown"; - -// A boolean pref which stores whether a stylus has been seen before. -const char kHasSeenStylus[] = "ash.has_seen_stylus"; -// A boolean pref which stores whether a the palette warm welcome bubble -// (displayed when a user first uses a stylus) has been shown before. -const char kShownPaletteWelcomeBubble[] = "ash.shown_palette_welcome_bubble"; -// A boolean pref that specifies if the stylus tools should be enabled/disabled. -const char kEnableStylusTools[] = "settings.enable_stylus_tools"; -// A boolean pref that specifies if the ash palette should be launched after an -// eject input event has been received. -const char kLaunchPaletteOnEjectEvent[] = - "settings.launch_palette_on_eject_event"; - -// Boolean pref indicating whether the PCI tunneling is allowed for external -// Thunderbolt/USB4 peripherals. This pref is only used if the policy -// "DevicePciPeripheralDataAccessEnabled" is set to "unset". -const char kLocalStateDevicePeripheralDataAccessEnabled[] = - "settings.local_state_device_pci_data_access_enabled"; - -// A boolean pref that specifies if the cellular setup notification can be -// shown or not. This notification should be shown post-OOBE if the user has a -// cellular-capable device but no available cellular networks. It should only be -// shown at most once per user. -const char kCanCellularSetupNotificationBeShown[] = - "ash.cellular_setup.can_setup_notification_be_shown"; - -// Boolean pref indicating whether the privacy warning of the managed-guest -// session on both; the login screen and inside the auto-launched session, -// should be displayed or not. -const char kManagedGuestSessionPrivacyWarningsEnabled[] = - "managed_session.privacy_warning_enabled"; - -// A string pref storing the type of lock screen notification mode. -// "show" -> show notifications on the lock screen -// "hide" -> hide notifications at all on the lock screen (default) -// "hideSensitive" -> hide sensitive content on the lock screen -// (other values are treated as "hide") -const char kMessageCenterLockScreenMode[] = - "ash.message_center.lock_screen_mode"; - -// Value of each options of the lock screen notification settings. They are -// used the pref of ash::prefs::kMessageCenterLockScreenMode. -const char kMessageCenterLockScreenModeShow[] = "show"; -const char kMessageCenterLockScreenModeHide[] = "hide"; -const char kMessageCenterLockScreenModeHideSensitive[] = "hideSensitive"; - -// A boolean pref storing the enabled status of the ambient color feature. -const char kAmbientColorEnabled[] = "ash.ambient_color.enabled"; - -// A boolean pref used when dark light mode feature is enabled to indicate -// whether the color mode is themed. If true, the background color will be -// calculated based on extracted wallpaper color. -const char kColorModeThemed[] = "ash.dark_mode.color_mode_themed"; - -// A boolean pref that indicates whether dark mode is enabled. -const char kDarkModeEnabled[] = "ash.dark_mode.enabled"; - -// A boolean pref storing the enabled status of the NightLight feature. -const char kNightLightEnabled[] = "ash.night_light.enabled"; - -// A double pref storing the screen color temperature set by the NightLight -// feature. The expected values are in the range of 0.0 (least warm) and 1.0 -// (most warm). -const char kNightLightTemperature[] = "ash.night_light.color_temperature"; - -// An integer pref storing the type of automatic scheduling of turning on and -// off the NightLight feature. Valid values are: -// 0 -> NightLight is never turned on or off automatically. -// 1 -> NightLight is turned on and off at the sunset and sunrise times -// respectively. -// 2 -> NightLight schedule times are explicitly set by the user. -// -// See ash::NightLightController::ScheduleType. -const char kNightLightScheduleType[] = "ash.night_light.schedule_type"; - -// Integer prefs storing the start and end times of the automatic schedule at -// which NightLight turns on and off respectively when the schedule type is set -// to a custom schedule. The times are represented as the number of minutes from -// 00:00 (12:00 AM) regardless of the date or the timezone. -// See ash::TimeOfDayTime. -const char kNightLightCustomStartTime[] = "ash.night_light.custom_start_time"; -const char kNightLightCustomEndTime[] = "ash.night_light.custom_end_time"; - -// Double prefs storing the most recent valid geoposition, which is only used -// when the device lacks connectivity and we're unable to retrieve a valid -// geoposition to calculate the sunset / sunrise times. -const char kNightLightCachedLatitude[] = "ash.night_light.cached_latitude"; -const char kNightLightCachedLongitude[] = "ash.night_light.cached_longitude"; - -// A boolean pref storing whether the AutoNightLight notification has ever been -// dismissed by the user, which we use to stop showing it again. -const char kAutoNightLightNotificationDismissed[] = - "ash.auto_night_light.notification_dismissed"; - -// Whether the Chrome OS lock screen is allowed. -const char kAllowScreenLock[] = "allow_screen_lock"; - -// A boolean pref that turns on automatic screen locking. -const char kEnableAutoScreenLock[] = "settings.enable_screen_lock"; - -// Screen brightness percent values to be used when running on AC power. -// Specified by the policy. -const char kPowerAcScreenBrightnessPercent[] = - "power.ac_screen_brightness_percent"; - -// Inactivity time in milliseconds while the system is on AC power before -// the screen should be dimmed, turned off, or locked, before an -// IdleActionImminent D-Bus signal should be sent, or before -// kPowerAcIdleAction should be performed. 0 disables the delay (N/A for -// kPowerAcIdleDelayMs). -const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms"; -const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms"; -const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms"; -const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms"; - -// Screen brightness percent values to be used when running on battery power. -// Specified by the policy. -const char kPowerBatteryScreenBrightnessPercent[] = - "power.battery_screen_brightness_percent"; - -// Similar delays while the system is on battery power. -const char kPowerBatteryScreenDimDelayMs[] = - "power.battery_screen_dim_delay_ms"; -const char kPowerBatteryScreenOffDelayMs[] = - "power.battery_screen_off_delay_ms"; -const char kPowerBatteryScreenLockDelayMs[] = - "power.battery_screen_lock_delay_ms"; -const char kPowerBatteryIdleWarningDelayMs[] = - "power.battery_idle_warning_delay_ms"; -const char kPowerBatteryIdleDelayMs[] = "power.battery_idle_delay_ms"; -const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms"; - -// Inactivity delays used to dim the screen or turn it off while the screen is -// locked. -const char kPowerLockScreenDimDelayMs[] = "power.lock_screen_dim_delay_ms"; -const char kPowerLockScreenOffDelayMs[] = "power.lock_screen_off_delay_ms"; - -// Action that should be performed when the idle delay is reached while the -// system is on AC power or battery power. -// Values are from the chromeos::PowerPolicyController::Action enum. -const char kPowerAcIdleAction[] = "power.ac_idle_action"; -const char kPowerBatteryIdleAction[] = "power.battery_idle_action"; - -// Action that should be performed when the lid is closed. -// Values are from the chromeos::PowerPolicyController::Action enum. -const char kPowerLidClosedAction[] = "power.lid_closed_action"; - -// Should audio and video activity be used to disable the above delays? -const char kPowerUseAudioActivity[] = "power.use_audio_activity"; -const char kPowerUseVideoActivity[] = "power.use_video_activity"; - -// Should extensions, ARC apps, and other code within Chrome be able to override -// system power management (preventing automatic actions like sleeping, locking, -// or screen dimming)? -const char kPowerAllowWakeLocks[] = "power.allow_wake_locks"; - -// Should extensions, ARC apps, and other code within Chrome be able to override -// display-related power management? (Disallowing wake locks in general takes -// precedence over this.) -const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks"; - -// Amount by which the screen-dim delay should be scaled while the system -// is in presentation mode. Values are limited to a minimum of 1.0. -const char kPowerPresentationScreenDimDelayFactor[] = - "power.presentation_screen_dim_delay_factor"; - -// Amount by which the screen-dim delay should be scaled when user activity is -// observed while the screen is dimmed or soon after the screen has been turned -// off. Values are limited to a minimum of 1.0. -const char kPowerUserActivityScreenDimDelayFactor[] = - "power.user_activity_screen_dim_delay_factor"; - -// Whether the power management delays should start running only after the first -// user activity has been observed in a session. -const char kPowerWaitForInitialUserActivity[] = - "power.wait_for_initial_user_activity"; - -// Boolean controlling whether the panel backlight should be forced to a -// nonzero level when user activity is observed. -const char kPowerForceNonzeroBrightnessForUserActivity[] = - "power.force_nonzero_brightness_for_user_activity"; - -// Boolean controlling whether a shorter suspend delay should be used after the -// user forces the display off by pressing the power button. Provided to allow -// policy to control this behavior. -const char kPowerFastSuspendWhenBacklightsForcedOff[] = - "power.fast_suspend_when_backlights_forced_off"; - -// Boolean controlling whether smart dim model is enabled. -const char kPowerSmartDimEnabled[] = "power.smart_dim_enabled"; - -// Boolean controlling whether ALS logging is enabled. -const char kPowerAlsLoggingEnabled[] = "power.als_logging_enabled"; - -// Boolean controlling whether the settings is enabled. This pref is intended to -// be set only by policy not by user. -const char kOsSettingsEnabled[] = "os_settings_enabled"; - -// |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The -// local variant is not synced and is used if set. If the local variant is not -// set its value is set from the synced value (once prefs have been -// synced). This gives a per-machine setting that is initialized from the last -// set value. -// These values are default on the machine but can be overridden by per-display -// values in kShelfPreferences (unless overridden by managed policy). -// String value corresponding to ash::ShelfAlignment (e.g. "Bottom"). -const char kShelfAlignment[] = "shelf_alignment"; -const char kShelfAlignmentLocal[] = "shelf_alignment_local"; -// String value corresponding to ash::ShelfAutoHideBehavior (e.g. "Never"). -const char kShelfAutoHideBehavior[] = "auto_hide_behavior"; -const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local"; -// Dictionary value that holds per-display preference of shelf alignment and -// auto-hide behavior. Key of the dictionary is the id of the display, and -// its value is a dictionary whose keys are kShelfAlignment and -// kShelfAutoHideBehavior. -const char kShelfPreferences[] = "shelf_preferences"; - -// Boolean pref indicating whether to show a logout button in the system tray. -const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray"; - -// Integer pref indicating the length of time in milliseconds for which a -// confirmation dialog should be shown when the user presses the logout button. -// A value of 0 indicates that logout should happen immediately, without showing -// a confirmation dialog. -const char kLogoutDialogDurationMs[] = "logout_dialog_duration_ms"; - -// A boolean pref that when set to true, displays the logout confirmation -// dialog. If set to false, it prevents showing the dialog and the subsequent -// logout after closing the last window. -const char kSuggestLogoutAfterClosingLastWindow[] = - "suggest_logout_after_closing_last_window"; - -// A dictionary pref that maps usernames to wallpaper info. -const char kUserWallpaperInfo[] = "user_wallpaper_info"; - -// A dictionary pref that maps usernames to wallpaper info. -// This is for wallpapers that are syncable across devices. -const char kSyncableWallpaperInfo[] = "syncable_wallpaper_info"; - -// A dictionary pref that maps wallpaper file paths to their prominent colors. -const char kWallpaperColors[] = "ash.wallpaper.prominent_colors"; - -// String pref storing the collection_id used to query for new wallpapers when -// daily refresh is enabled. -const char kWallpaperCollectionId[] = "ash.wallpaper.collection_id"; - -// Boolean pref indicating whether a user has enabled the bluetooth adapter. -const char kUserBluetoothAdapterEnabled[] = - "ash.user.bluetooth.adapter_enabled"; - -// Boolean pref indicating system-wide setting for bluetooth adapter power. -const char kSystemBluetoothAdapterEnabled[] = - "ash.system.bluetooth.adapter_enabled"; - -// A boolean pref which determines whether tap-dragging is enabled. -const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging"; - -// Boolean prefs for the status of the touchscreen and the touchpad. -const char kTouchpadEnabled[] = "events.touch_pad.enabled"; -const char kTouchscreenEnabled[] = "events.touch_screen.enabled"; - -// String pref storing the salt for the pin quick unlock mechanism. -const char kQuickUnlockPinSalt[] = "quick_unlock.pin.salt"; - -// Dictionary prefs in local state that keeps information about detachable -// bases - for exmaple the last used base per user. -const char kDetachableBaseDevices[] = "ash.detachable_base.devices"; - -// Pref storing the number of sessions in which Assistant onboarding was shown. -const char kAssistantNumSessionsWhereOnboardingShown[] = - "ash.assistant.num_sessions_where_onboarding_shown"; - -// Pref storing the time of the last Assistant interaction. -const char kAssistantTimeOfLastInteraction[] = - "ash.assistant.time_of_last_interaction"; - -// Whether the user is allowed to disconnect and configure VPN connections. -const char kVpnConfigAllowed[] = "vpn_config_allowed"; - -// A boolean pref that indicates whether power peak shift is enabled. -// Ignored unless powerd is configured to honor charging-related prefs. -const char kPowerPeakShiftEnabled[] = "ash.power.peak_shift_enabled"; - -// An integer pref that specifies the power peak shift battery threshold in -// percent. -// Ignored unless powerd is configured to honor charging-related prefs. -const char kPowerPeakShiftBatteryThreshold[] = - "ash.power.peak_shift_battery_threshold"; - -// A dictionary pref that specifies the power peak shift day configs. -// For details see "DevicePowerPeakShiftDayConfig" in policy_templates.json. -// Ignored unless powerd is configured to honor charging-related prefs. -const char kPowerPeakShiftDayConfig[] = "ash.power.peak_shift_day_config"; - -// A boolean pref that indicates whether boot on AC is enabled. -const char kBootOnAcEnabled[] = "ash.power.boot_on_ac_enabled"; - -// A boolean pref that indicates whether advanced battery charge mode is -// enabled. -// Ignored unless powerd is configured to honor charging-related prefs. -const char kAdvancedBatteryChargeModeEnabled[] = - "ash.power.advanced_battery_charge_mode_enabled"; - -// A dictionary pref that specifies the advanced battery charge mode day config. -// For details see "DeviceAdvancedBatteryChargeModeDayConfig" in -// policy_templates.json. -// Ignored unless powerd is configured to honor charging-related prefs. -const char kAdvancedBatteryChargeModeDayConfig[] = - "ash.power.advanced_battery_charge_mode_day_config"; - -// An integer pref that specifies the battery charge mode. -// For details see "DeviceBatteryChargeMode" in policy_templates.json. -// Ignored unless powerd is configured to honor charging-related prefs. -const char kBatteryChargeMode[] = "ash.power.battery_charge_mode"; - -// An integer pref that specifies the battery charge custom start charging in -// percent. -// For details see "DeviceBatteryChargeCustomStartCharging" in -// policy_templates.json. -// Ignored unless powerd is configured to honor charging-related prefs. -const char kBatteryChargeCustomStartCharging[] = - "ash.power.battery_charge_custom_start_charging"; - -// An integer pref that specifies the battery charge custom stop charging in -// percent. -// For details see "DeviceBatteryChargeCustomStopCharging" in -// policy_templates.json. -// Ignored unless powerd is configured to honor charging-related prefs. -const char kBatteryChargeCustomStopCharging[] = - "ash.power.battery_charge_custom_stop_charging"; - -// A boolean pref that indicates whether USB power share is enabled. -// For details see "DeviceUsbPowerShareEnabled" in policy_templates.json. -// Ignored unless powerd is configured to honor charging-related prefs. -const char kUsbPowerShareEnabled[] = "ash.power.usb_power_share_enabled"; - -// An integer pref that specifies how many times the Suggested Content privacy -// info has been shown in Launcher. This value will increment by one every time -// when Launcher changes state from Peeking to Half or FullscreenSearch up to a -// predefined threshold, e.g. six times. If the info has been shown for more -// than the threshold, do not show the privacy info any more. -const char kSuggestedContentInfoShownInLauncher[] = - "ash.launcher.suggested_content_info_shown"; - -// A boolean pref that indicates whether the Suggested Content privacy info may -// be displayed to user. A false value indicates that the info can be displayed -// if the value of |kSuggestedContentInfoShownInLauncher| is smaller than the -// predefined threshold. A true value implies that the user has dismissed the -// info view, and do not show the privacy info any more. -const char kSuggestedContentInfoDismissedInLauncher[] = - "ash.launcher.suggested_content_info_dismissed"; - -// A boolean pref that indicates whether lock screen media controls are enabled. -// Controlled by user policy. -const char kLockScreenMediaControlsEnabled[] = - "ash.lock_screen_media_controls_enabled"; - -// Boolean pref which determines whether key repeat is enabled. -const char kXkbAutoRepeatEnabled[] = - "settings.language.xkb_auto_repeat_enabled_r2"; - -// Integer pref which determines key repeat delay (in ms). -const char kXkbAutoRepeatDelay[] = "settings.language.xkb_auto_repeat_delay_r2"; - -// Integer pref which determines key repeat interval (in ms). -const char kXkbAutoRepeatInterval[] = - "settings.language.xkb_auto_repeat_interval_r2"; -// "_r2" suffixes were added to the three prefs above when we changed the -// preferences to not be user-configurable or sync with the cloud. The prefs are -// now user-configurable and syncable again, but we don't want to overwrite the -// current values with the old synced values, so we continue to use this suffix. - -// A boolean pref which is true if touchpad reverse scroll is enabled. -const char kNaturalScroll[] = "settings.touchpad.natural_scroll"; -// A boolean pref which is true if mouse reverse scroll is enabled. -const char kMouseReverseScroll[] = "settings.mouse.reverse_scroll"; - -// A dictionary storing the number of times and most recent time the multipaste -// contextual nudge was shown. -const char kMultipasteNudges[] = "ash.clipboard.multipaste_nudges"; - -// A boolean pref that indicates whether app badging is shown in launcher and -// shelf. -const char kAppNotificationBadgingEnabled[] = - "ash.app_notification_badging_enabled"; - -// An integer pref that indicates whether global media controls is pinned to -// shelf or it's unset and need to be determined by screen size during runtime. -const char kGlobalMediaControlsPinned[] = - "ash.system.global_media_controls_pinned"; - -// An integer pref that tracks how many times the user is able to click on -// PciePeripheral-related notifications before hiding new notifications. -const char kPciePeripheralDisplayNotificationRemaining[] = - "ash.pcie_peripheral_display_notification_remaining"; - -// Boolean prefs storing whether various IME-related keyboard shortcut reminders -// have previously been dismissed or not. -const char kLastUsedImeShortcutReminderDismissed[] = - "ash.shortcut_reminders.last_used_ime_dismissed"; -const char kNextImeShortcutReminderDismissed[] = - "ash.shortcut_reminders.next_ime_dismissed"; - -// An integet pref that tracks how many times the user has been shown the -// notification about shortcuts changing. -const char kImprovedShortcutsNotificationShownCount[] = - "ash.improved_shortcuts_notification_shown_count"; - -// NOTE: New prefs should start with the "ash." prefix. Existing prefs moved -// into this file should not be renamed, since they may be synced. - -} // namespace prefs - -} // namespace ash diff --git a/ash/public/cpp/ash_pref_names.h b/ash/public/cpp/ash_pref_names.h deleted file mode 100644 index 616527d4fb5319..00000000000000 --- a/ash/public/cpp/ash_pref_names.h +++ /dev/null @@ -1,245 +0,0 @@ -// Copyright 2017 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. - -#ifndef ASH_PUBLIC_CPP_ASH_PREF_NAMES_H_ -#define ASH_PUBLIC_CPP_ASH_PREF_NAMES_H_ - -#include "ash/public/cpp/ash_public_export.h" - -namespace ash { - -namespace prefs { - -ASH_PUBLIC_EXPORT extern const char kAccessibilityLargeCursorEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityLargeCursorDipSize[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityStickyKeysEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilitySpokenFeedbackEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityHighContrastEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityScreenMagnifierCenterFocus[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityScreenMagnifierEnabled[]; -ASH_PUBLIC_EXPORT extern const char - kAccessibilityScreenMagnifierFocusFollowingEnabled[]; -ASH_PUBLIC_EXPORT extern const char - kAccessibilityScreenMagnifierMouseFollowingMode[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityScreenMagnifierScale[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityVirtualKeyboardEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityVirtualKeyboardFeatures[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityMonoAudioEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityAutoclickEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityShortcutsEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityAutoclickDelayMs[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityAutoclickEventType[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityAutoclickRevertToLeftClick[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityAutoclickStabilizePosition[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityAutoclickMovementThreshold[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityAutoclickMenuPosition[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityCaretHighlightEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityCursorHighlightEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityCursorColorEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityCursorColor[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityFloatingMenuEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityFloatingMenuPosition[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityFocusHighlightEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilitySelectToSpeakEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilitySwitchAccessEnabled[]; -ASH_PUBLIC_EXPORT extern const char - kAccessibilitySwitchAccessSelectDeviceKeyCodes[]; -ASH_PUBLIC_EXPORT extern const char - kAccessibilitySwitchAccessNextDeviceKeyCodes[]; -ASH_PUBLIC_EXPORT extern const char - kAccessibilitySwitchAccessPreviousDeviceKeyCodes[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilitySwitchAccessAutoScanEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilitySwitchAccessAutoScanSpeedMs[]; -ASH_PUBLIC_EXPORT extern const char - kAccessibilitySwitchAccessAutoScanKeyboardSpeedMs[]; -ASH_PUBLIC_EXPORT extern const char - kAccessibilitySwitchAccessPointScanSpeedDipsPerSecond[]; -ASH_PUBLIC_EXPORT extern const char - kAccessibilityTabletModeShelfNavigationButtonsEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityDictationEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAccessibilityDictationLocale[]; -ASH_PUBLIC_EXPORT extern const char kShouldAlwaysShowAccessibilityMenu[]; - -ASH_PUBLIC_EXPORT extern const char kAltTabPerDesk[]; - -ASH_PUBLIC_EXPORT extern const char kContextualTooltips[]; - -ASH_PUBLIC_EXPORT extern const char kDesksNamesList[]; -ASH_PUBLIC_EXPORT extern const char kDesksMetricsList[]; -ASH_PUBLIC_EXPORT extern const char kDesksWeeklyActiveDesksMetrics[]; -ASH_PUBLIC_EXPORT extern const char kDesksActiveDesk[]; - -ASH_PUBLIC_EXPORT extern const char kDockedMagnifierEnabled[]; -ASH_PUBLIC_EXPORT extern const char kDockedMagnifierScale[]; -ASH_PUBLIC_EXPORT extern const char - kDockedMagnifierAcceleratorDialogHasBeenAccepted[]; -ASH_PUBLIC_EXPORT extern const char - kHighContrastAcceleratorDialogHasBeenAccepted[]; -ASH_PUBLIC_EXPORT extern const char - kScreenMagnifierAcceleratorDialogHasBeenAccepted[]; -ASH_PUBLIC_EXPORT extern const char - kDictationAcceleratorDialogHasBeenAccepted[]; -ASH_PUBLIC_EXPORT extern const char - kDisplayRotationAcceleratorDialogHasBeenAccepted[]; -ASH_PUBLIC_EXPORT extern const char - kDisplayRotationAcceleratorDialogHasBeenAccepted2[]; - -ASH_PUBLIC_EXPORT extern const char kDisplayMixedMirrorModeParams[]; -ASH_PUBLIC_EXPORT extern const char kDisplayPowerState[]; -ASH_PUBLIC_EXPORT extern const char kDisplayPrivacyScreenEnabled[]; -ASH_PUBLIC_EXPORT extern const char kDisplayProperties[]; -ASH_PUBLIC_EXPORT extern const char kDisplayRotationLock[]; -ASH_PUBLIC_EXPORT extern const char kDisplayTouchAssociations[]; -ASH_PUBLIC_EXPORT extern const char kDisplayTouchPortAssociations[]; -ASH_PUBLIC_EXPORT extern const char kExternalDisplayMirrorInfo[]; -ASH_PUBLIC_EXPORT extern const char kSecondaryDisplays[]; -ASH_PUBLIC_EXPORT extern const char kAllowMGSToStoreDisplayProperties[]; - -ASH_PUBLIC_EXPORT extern const char kFullscreenAlertEnabled[]; - -ASH_PUBLIC_EXPORT extern const char kGestureEducationNotificationShown[]; - -ASH_PUBLIC_EXPORT extern const char kHasSeenStylus[]; -ASH_PUBLIC_EXPORT extern const char kShownPaletteWelcomeBubble[]; -ASH_PUBLIC_EXPORT extern const char kEnableStylusTools[]; -ASH_PUBLIC_EXPORT extern const char kLaunchPaletteOnEjectEvent[]; -ASH_PUBLIC_EXPORT extern const char - kLocalStateDevicePeripheralDataAccessEnabled[]; - -ASH_PUBLIC_EXPORT extern const char kCanCellularSetupNotificationBeShown[]; - -// Managed-guest session privacy warning. -ASH_PUBLIC_EXPORT extern const char - kManagedGuestSessionPrivacyWarningsEnabled[]; - -// Lock screen notification settings. -ASH_PUBLIC_EXPORT extern const char kMessageCenterLockScreenMode[]; -ASH_PUBLIC_EXPORT extern const char kMessageCenterLockScreenModeShow[]; -ASH_PUBLIC_EXPORT extern const char kMessageCenterLockScreenModeHide[]; -ASH_PUBLIC_EXPORT extern const char kMessageCenterLockScreenModeHideSensitive[]; - -ASH_PUBLIC_EXPORT extern const char kAmbientColorEnabled[]; -ASH_PUBLIC_EXPORT extern const char kColorModeThemed[]; -ASH_PUBLIC_EXPORT extern const char kDarkModeEnabled[]; -ASH_PUBLIC_EXPORT extern const char kNightLightEnabled[]; -ASH_PUBLIC_EXPORT extern const char kNightLightTemperature[]; -ASH_PUBLIC_EXPORT extern const char kNightLightScheduleType[]; -ASH_PUBLIC_EXPORT extern const char kNightLightCustomStartTime[]; -ASH_PUBLIC_EXPORT extern const char kNightLightCustomEndTime[]; -ASH_PUBLIC_EXPORT extern const char kNightLightCachedLatitude[]; -ASH_PUBLIC_EXPORT extern const char kNightLightCachedLongitude[]; -ASH_PUBLIC_EXPORT extern const char kAutoNightLightNotificationDismissed[]; - -ASH_PUBLIC_EXPORT extern const char kOsSettingsEnabled[]; - -ASH_PUBLIC_EXPORT extern const char kAllowScreenLock[]; -ASH_PUBLIC_EXPORT extern const char kEnableAutoScreenLock[]; -ASH_PUBLIC_EXPORT extern const char kPowerAcScreenBrightnessPercent[]; -ASH_PUBLIC_EXPORT extern const char kPowerAcScreenDimDelayMs[]; -ASH_PUBLIC_EXPORT extern const char kPowerAcScreenOffDelayMs[]; -ASH_PUBLIC_EXPORT extern const char kPowerAcScreenLockDelayMs[]; -ASH_PUBLIC_EXPORT extern const char kPowerAcIdleWarningDelayMs[]; -ASH_PUBLIC_EXPORT extern const char kPowerAcIdleDelayMs[]; -ASH_PUBLIC_EXPORT extern const char kPowerBatteryScreenBrightnessPercent[]; -ASH_PUBLIC_EXPORT extern const char kPowerBatteryScreenDimDelayMs[]; -ASH_PUBLIC_EXPORT extern const char kPowerBatteryScreenOffDelayMs[]; -ASH_PUBLIC_EXPORT extern const char kPowerBatteryScreenLockDelayMs[]; -ASH_PUBLIC_EXPORT extern const char kPowerBatteryIdleWarningDelayMs[]; -ASH_PUBLIC_EXPORT extern const char kPowerBatteryIdleDelayMs[]; -ASH_PUBLIC_EXPORT extern const char kPowerLockScreenDimDelayMs[]; -ASH_PUBLIC_EXPORT extern const char kPowerLockScreenOffDelayMs[]; -ASH_PUBLIC_EXPORT extern const char kPowerAcIdleAction[]; -ASH_PUBLIC_EXPORT extern const char kPowerBatteryIdleAction[]; -ASH_PUBLIC_EXPORT extern const char kPowerLidClosedAction[]; -ASH_PUBLIC_EXPORT extern const char kPowerUseAudioActivity[]; -ASH_PUBLIC_EXPORT extern const char kPowerUseVideoActivity[]; -ASH_PUBLIC_EXPORT extern const char kPowerAllowWakeLocks[]; -ASH_PUBLIC_EXPORT extern const char kPowerAllowScreenWakeLocks[]; -ASH_PUBLIC_EXPORT extern const char kPowerPresentationScreenDimDelayFactor[]; -ASH_PUBLIC_EXPORT extern const char kPowerUserActivityScreenDimDelayFactor[]; -ASH_PUBLIC_EXPORT extern const char kPowerWaitForInitialUserActivity[]; -ASH_PUBLIC_EXPORT extern const char - kPowerForceNonzeroBrightnessForUserActivity[]; -ASH_PUBLIC_EXPORT extern const char kPowerFastSuspendWhenBacklightsForcedOff[]; -ASH_PUBLIC_EXPORT extern const char kPowerSmartDimEnabled[]; -ASH_PUBLIC_EXPORT extern const char kPowerAlsLoggingEnabled[]; - -ASH_PUBLIC_EXPORT extern const char kShelfAlignment[]; -ASH_PUBLIC_EXPORT extern const char kShelfAlignmentLocal[]; -ASH_PUBLIC_EXPORT extern const char kShelfAutoHideBehavior[]; -ASH_PUBLIC_EXPORT extern const char kShelfAutoHideBehaviorLocal[]; -ASH_PUBLIC_EXPORT extern const char kShelfPreferences[]; - -ASH_PUBLIC_EXPORT extern const char kShowLogoutButtonInTray[]; -ASH_PUBLIC_EXPORT extern const char kLogoutDialogDurationMs[]; -ASH_PUBLIC_EXPORT extern const char kSuggestLogoutAfterClosingLastWindow[]; - -ASH_PUBLIC_EXPORT extern const char kUserWallpaperInfo[]; -ASH_PUBLIC_EXPORT extern const char kWallpaperColors[]; -ASH_PUBLIC_EXPORT extern const char kSyncableWallpaperInfo[]; -ASH_PUBLIC_EXPORT extern const char kWallpaperCollectionId[]; - -ASH_PUBLIC_EXPORT extern const char kUserBluetoothAdapterEnabled[]; -ASH_PUBLIC_EXPORT extern const char kSystemBluetoothAdapterEnabled[]; - -ASH_PUBLIC_EXPORT extern const char kTapDraggingEnabled[]; -ASH_PUBLIC_EXPORT extern const char kTouchpadEnabled[]; -ASH_PUBLIC_EXPORT extern const char kTouchscreenEnabled[]; - -ASH_PUBLIC_EXPORT extern const char kQuickUnlockPinSalt[]; - -ASH_PUBLIC_EXPORT extern const char kDetachableBaseDevices[]; - -ASH_PUBLIC_EXPORT extern const char kCursorMotionBlurEnabled[]; - -ASH_PUBLIC_EXPORT extern const char kAssistantNumSessionsWhereOnboardingShown[]; -ASH_PUBLIC_EXPORT extern const char kAssistantTimeOfLastInteraction[]; - -ASH_PUBLIC_EXPORT extern const char kVpnConfigAllowed[]; - -ASH_PUBLIC_EXPORT extern const char kPowerPeakShiftEnabled[]; -ASH_PUBLIC_EXPORT extern const char kPowerPeakShiftBatteryThreshold[]; -ASH_PUBLIC_EXPORT extern const char kPowerPeakShiftDayConfig[]; - -ASH_PUBLIC_EXPORT extern const char kBootOnAcEnabled[]; - -ASH_PUBLIC_EXPORT extern const char kAdvancedBatteryChargeModeEnabled[]; -ASH_PUBLIC_EXPORT extern const char kAdvancedBatteryChargeModeDayConfig[]; - -ASH_PUBLIC_EXPORT extern const char kBatteryChargeMode[]; -ASH_PUBLIC_EXPORT extern const char kBatteryChargeCustomStartCharging[]; -ASH_PUBLIC_EXPORT extern const char kBatteryChargeCustomStopCharging[]; - -ASH_PUBLIC_EXPORT extern const char kUsbPowerShareEnabled[]; - -ASH_PUBLIC_EXPORT extern const char kSuggestedContentInfoShownInLauncher[]; -ASH_PUBLIC_EXPORT extern const char kSuggestedContentInfoDismissedInLauncher[]; - -ASH_PUBLIC_EXPORT extern const char kLockScreenMediaControlsEnabled[]; - -ASH_PUBLIC_EXPORT extern const char kXkbAutoRepeatDelay[]; -ASH_PUBLIC_EXPORT extern const char kXkbAutoRepeatEnabled[]; -ASH_PUBLIC_EXPORT extern const char kXkbAutoRepeatInterval[]; - -ASH_PUBLIC_EXPORT extern const char kNaturalScroll[]; -ASH_PUBLIC_EXPORT extern const char kMouseReverseScroll[]; - -ASH_PUBLIC_EXPORT extern const char kMultipasteNudges[]; - -ASH_PUBLIC_EXPORT extern const char kAppNotificationBadgingEnabled[]; - -ASH_PUBLIC_EXPORT extern const char kGlobalMediaControlsPinned[]; - -ASH_PUBLIC_EXPORT extern const char - kPciePeripheralDisplayNotificationRemaining[]; - -ASH_PUBLIC_EXPORT extern const char kLastUsedImeShortcutReminderDismissed[]; -ASH_PUBLIC_EXPORT extern const char kNextImeShortcutReminderDismissed[]; - -ASH_PUBLIC_EXPORT extern const char kImprovedShortcutsNotificationShownCount[]; -} // namespace prefs - -} // namespace ash - -#endif // ASH_PUBLIC_CPP_ASH_PREF_NAMES_H_ diff --git a/ash/public/cpp/shelf_prefs.cc b/ash/public/cpp/shelf_prefs.cc index 8cfe87d0f7e5be..c18c92daa02f16 100644 --- a/ash/public/cpp/shelf_prefs.cc +++ b/ash/public/cpp/shelf_prefs.cc @@ -6,7 +6,7 @@ #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/strings/string_number_conversions.h" #include "base/values.h" #include "components/prefs/pref_service.h" diff --git a/ash/session/fullscreen_controller.cc b/ash/session/fullscreen_controller.cc index f808e3a6221093..6eb337183e228a 100644 --- a/ash/session/fullscreen_controller.cc +++ b/ash/session/fullscreen_controller.cc @@ -7,7 +7,7 @@ #include #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/fullscreen_alert_bubble.h" #include "ash/session/session_controller_impl.h" #include "ash/shelf/shelf.h" diff --git a/ash/shelf/assistant_overlay_unittest.cc b/ash/shelf/assistant_overlay_unittest.cc index c8d7d6c07fca59..b06058209e1283 100644 --- a/ash/shelf/assistant_overlay_unittest.cc +++ b/ash/shelf/assistant_overlay_unittest.cc @@ -8,8 +8,8 @@ #include #include +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/assistant/assistant_state.h" #include "ash/public/cpp/shelf_config.h" #include "ash/session/session_controller_impl.h" diff --git a/ash/shelf/contextual_tooltip.cc b/ash/shelf/contextual_tooltip.cc index 874793cf23600f..5c9d9aa71910a3 100644 --- a/ash/shelf/contextual_tooltip.cc +++ b/ash/shelf/contextual_tooltip.cc @@ -5,8 +5,8 @@ #include "ash/shelf/contextual_tooltip.h" #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/shelf_config.h" #include "ash/session/session_controller_impl.h" #include "ash/shelf/contextual_nudge_status_tracker.h" diff --git a/ash/shelf/contextual_tooltip_unittest.cc b/ash/shelf/contextual_tooltip_unittest.cc index 43a428efcfc3bf..eb6f819939ec3e 100644 --- a/ash/shelf/contextual_tooltip_unittest.cc +++ b/ash/shelf/contextual_tooltip_unittest.cc @@ -5,7 +5,6 @@ #include "ash/shelf/contextual_tooltip.h" #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shelf/contextual_nudge_status_tracker.h" #include "ash/shelf/contextual_tooltip.h" diff --git a/ash/shelf/home_to_overview_nudge_controller_unittest.cc b/ash/shelf/home_to_overview_nudge_controller_unittest.cc index 57c6a61cba1808..3764b5c66440da 100644 --- a/ash/shelf/home_to_overview_nudge_controller_unittest.cc +++ b/ash/shelf/home_to_overview_nudge_controller_unittest.cc @@ -5,7 +5,7 @@ #include "ash/shelf/home_to_overview_nudge_controller.h" #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shelf/contextual_nudge.h" #include "ash/shelf/contextual_tooltip.h" diff --git a/ash/shelf/shelf_context_menu_model.cc b/ash/shelf/shelf_context_menu_model.cc index 1e4bc36f4e91f6..277ce5f2adea03 100644 --- a/ash/shelf/shelf_context_menu_model.cc +++ b/ash/shelf/shelf_context_menu_model.cc @@ -10,8 +10,8 @@ #include "ash/app_list/app_list_controller_impl.h" #include "ash/app_list/app_list_metrics.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/app_menu_constants.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/shelf_item_delegate.h" #include "ash/public/cpp/shelf_model.h" #include "ash/public/cpp/shelf_prefs.h" diff --git a/ash/shelf/shelf_controller.cc b/ash/shelf/shelf_controller.cc index c1d20260ed1a50..d238ddade16768 100644 --- a/ash/shelf/shelf_controller.cc +++ b/ash/shelf/shelf_controller.cc @@ -4,7 +4,7 @@ #include "ash/shelf/shelf_controller.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/message_center/arc_notification_constants.h" #include "ash/public/cpp/shelf_item_delegate.h" #include "ash/public/cpp/shelf_prefs.h" diff --git a/ash/shelf/shelf_controller_unittest.cc b/ash/shelf/shelf_controller_unittest.cc index cfe424976b4b9b..d4525f36a128ae 100644 --- a/ash/shelf/shelf_controller_unittest.cc +++ b/ash/shelf/shelf_controller_unittest.cc @@ -6,7 +6,7 @@ #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/shelf_model.h" #include "ash/public/cpp/shelf_prefs.h" #include "ash/public/cpp/window_properties.h" diff --git a/ash/shelf/shelf_drag_handle_unittest.cc b/ash/shelf/shelf_drag_handle_unittest.cc index 850d3ea7e2971d..49c9621b0473d8 100644 --- a/ash/shelf/shelf_drag_handle_unittest.cc +++ b/ash/shelf/shelf_drag_handle_unittest.cc @@ -4,7 +4,7 @@ #include "ash/app_list/test/app_list_test_helper.h" #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/shelf_types.h" #include "ash/session/session_controller_impl.h" #include "ash/shelf/contextual_tooltip.h" diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc index ac56193ac122f4..9a22279b90def4 100644 --- a/ash/shelf/shelf_layout_manager.cc +++ b/ash/shelf/shelf_layout_manager.cc @@ -14,9 +14,9 @@ #include "ash/app_list/app_list_metrics.h" #include "ash/app_list/views/app_list_view.h" #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/display/screen_orientation_controller.h" #include "ash/public/cpp/app_list/app_list_types.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/presentation_time_recorder.h" #include "ash/public/cpp/shelf_config.h" #include "ash/public/cpp/shelf_types.h" diff --git a/ash/shelf/shelf_layout_manager_unittest.cc b/ash/shelf/shelf_layout_manager_unittest.cc index d4af9e8402603e..aee6a1a3832680 100644 --- a/ash/shelf/shelf_layout_manager_unittest.cc +++ b/ash/shelf/shelf_layout_manager_unittest.cc @@ -21,7 +21,6 @@ #include "ash/keyboard/ui/keyboard_ui.h" #include "ash/keyboard/ui/keyboard_ui_controller.h" #include "ash/keyboard/ui/keyboard_util.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/ash_prefs.h" #include "ash/public/cpp/keyboard/keyboard_controller.h" #include "ash/public/cpp/keyboard/keyboard_controller_observer.h" diff --git a/ash/shelf/test/shelf_layout_manager_test_base.cc b/ash/shelf/test/shelf_layout_manager_test_base.cc index 158376ec47ef7b..19495cc2f4ae8d 100644 --- a/ash/shelf/test/shelf_layout_manager_test_base.cc +++ b/ash/shelf/test/shelf_layout_manager_test_base.cc @@ -4,7 +4,7 @@ #include "ash/shelf/test/shelf_layout_manager_test_base.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shelf/shelf_layout_manager.h" #include "ash/shelf/shelf_view.h" diff --git a/ash/style/ash_color_provider.cc b/ash/style/ash_color_provider.cc index 74bf20d2097980..2c977501f5a693 100644 --- a/ash/style/ash_color_provider.cc +++ b/ash/style/ash_color_provider.cc @@ -8,7 +8,7 @@ #include "ash/constants/ash_constants.h" #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/style/color_mode_observer.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" diff --git a/ash/system/accessibility/tray_accessibility_unittest.cc b/ash/system/accessibility/tray_accessibility_unittest.cc index 4bd8eba6f94638..86778c637d510f 100644 --- a/ash/system/accessibility/tray_accessibility_unittest.cc +++ b/ash/system/accessibility/tray_accessibility_unittest.cc @@ -8,7 +8,6 @@ #include "ash/accessibility/accessibility_controller_impl.h" #include "ash/accessibility/accessibility_observer.h" #include "ash/accessibility/magnifier/docked_magnifier_controller.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "ash/system/tray/detailed_view_delegate.h" diff --git a/ash/system/audio/unified_volume_view.cc b/ash/system/audio/unified_volume_view.cc index 37a38775529771..53895bb3aeb6d5 100644 --- a/ash/system/audio/unified_volume_view.cc +++ b/ash/system/audio/unified_volume_view.cc @@ -8,7 +8,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/resources/vector_icons/vector_icons.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" diff --git a/ash/system/bluetooth/bluetooth_power_controller.cc b/ash/system/bluetooth/bluetooth_power_controller.cc index 0a14522329da8c..da6bd40b8b65d7 100644 --- a/ash/system/bluetooth/bluetooth_power_controller.cc +++ b/ash/system/bluetooth/bluetooth_power_controller.cc @@ -6,7 +6,7 @@ #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "base/bind.h" diff --git a/ash/system/bluetooth/bluetooth_power_controller_unittest.cc b/ash/system/bluetooth/bluetooth_power_controller_unittest.cc index 2c182f0f752561..0d9b7e0c26427f 100644 --- a/ash/system/bluetooth/bluetooth_power_controller_unittest.cc +++ b/ash/system/bluetooth/bluetooth_power_controller_unittest.cc @@ -4,7 +4,7 @@ #include "ash/system/bluetooth/bluetooth_power_controller.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "ash/test/ash_test_base.h" diff --git a/ash/system/gesture_education/gesture_education_notification_controller.cc b/ash/system/gesture_education/gesture_education_notification_controller.cc index 39dc8b476746fd..fcb0db9911da71 100644 --- a/ash/system/gesture_education/gesture_education_notification_controller.cc +++ b/ash/system/gesture_education/gesture_education_notification_controller.cc @@ -5,7 +5,7 @@ #include "ash/system/gesture_education/gesture_education_notification_controller.h" #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/notification_utils.h" #include "ash/public/cpp/shelf_config.h" #include "ash/public/cpp/system_tray_client.h" diff --git a/ash/system/media/media_tray.cc b/ash/system/media/media_tray.cc index 37d3452eb66ee0..b07d27209b5a45 100644 --- a/ash/system/media/media_tray.cc +++ b/ash/system/media/media_tray.cc @@ -4,8 +4,8 @@ #include "ash/system/media/media_tray.h" +#include "ash/constants/ash_pref_names.h" #include "ash/focus_cycler.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/media_notification_provider.h" #include "ash/resources/vector_icons/vector_icons.h" #include "ash/root_window_controller.h" diff --git a/ash/system/message_center/ash_message_center_lock_screen_controller.cc b/ash/system/message_center/ash_message_center_lock_screen_controller.cc index 483b10d0b4dac0..fbcae76418b070 100644 --- a/ash/system/message_center/ash_message_center_lock_screen_controller.cc +++ b/ash/system/message_center/ash_message_center_lock_screen_controller.cc @@ -5,8 +5,8 @@ #include "ash/system/message_center/ash_message_center_lock_screen_controller.h" #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/login/ui/lock_screen.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/toast_data.h" #include "ash/session/session_controller_impl.h" #include "ash/shelf/shelf.h" diff --git a/ash/system/message_center/message_center_controller.cc b/ash/system/message_center/message_center_controller.cc index cc4f1612bd1e73..c8cf73c627c856 100644 --- a/ash/system/message_center/message_center_controller.cc +++ b/ash/system/message_center/message_center_controller.cc @@ -7,8 +7,8 @@ #include #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/message_center/arc_notification_manager_base.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" diff --git a/ash/system/message_center/notifier_settings_view.cc b/ash/system/message_center/notifier_settings_view.cc index 91d5f3af61a256..b7a76f5b17fad8 100644 --- a/ash/system/message_center/notifier_settings_view.cc +++ b/ash/system/message_center/notifier_settings_view.cc @@ -11,7 +11,7 @@ #include #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/notifier_metadata.h" #include "ash/public/cpp/notifier_settings_controller.h" #include "ash/resources/vector_icons/vector_icons.h" diff --git a/ash/system/message_center/unified_message_center_view_unittest.cc b/ash/system/message_center/unified_message_center_view_unittest.cc index 6ffe98c8b67318..11b57d61114c78 100644 --- a/ash/system/message_center/unified_message_center_view_unittest.cc +++ b/ash/system/message_center/unified_message_center_view_unittest.cc @@ -5,7 +5,7 @@ #include "ash/system/message_center/unified_message_center_view.h" #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "ash/system/message_center/ash_message_center_lock_screen_controller.h" diff --git a/ash/system/network/cellular_setup_notifier.cc b/ash/system/network/cellular_setup_notifier.cc index fb77e01cc40e5d..000397ea6ec277 100644 --- a/ash/system/network/cellular_setup_notifier.cc +++ b/ash/system/network/cellular_setup_notifier.cc @@ -4,7 +4,7 @@ #include "ash/system/network/cellular_setup_notifier.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/network_config_service.h" #include "ash/public/cpp/notification_utils.h" #include "ash/public/cpp/system_tray_client.h" diff --git a/ash/system/network/cellular_setup_notifier_unittest.cc b/ash/system/network/cellular_setup_notifier_unittest.cc index ce21ceb9482a7f..15be5cf35e976b 100644 --- a/ash/system/network/cellular_setup_notifier_unittest.cc +++ b/ash/system/network/cellular_setup_notifier_unittest.cc @@ -5,7 +5,7 @@ #include "ash/system/network/cellular_setup_notifier.h" #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "ash/system/system_notification_controller.h" diff --git a/ash/system/network/vpn_list_view.cc b/ash/system/network/vpn_list_view.cc index 6c8b823659b29b..8975736238efec 100644 --- a/ash/system/network/vpn_list_view.cc +++ b/ash/system/network/vpn_list_view.cc @@ -7,8 +7,8 @@ #include #include +#include "ash/constants/ash_pref_names.h" #include "ash/metrics/user_metrics_recorder.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/system_tray_client.h" #include "ash/resources/vector_icons/vector_icons.h" #include "ash/session/session_controller_impl.h" diff --git a/ash/system/night_light/night_light_controller_impl.cc b/ash/system/night_light/night_light_controller_impl.cc index 4889c718fc966c..245dda9e3ba046 100644 --- a/ash/system/night_light/night_light_controller_impl.cc +++ b/ash/system/night_light/night_light_controller_impl.cc @@ -8,9 +8,9 @@ #include #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/display/display_color_manager.h" #include "ash/display/window_tree_host_manager.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/notification_utils.h" #include "ash/public/cpp/system_tray_client.h" #include "ash/resources/vector_icons/vector_icons.h" diff --git a/ash/system/night_light/night_light_controller_unittest.cc b/ash/system/night_light/night_light_controller_unittest.cc index accab6d7c13613..d02e41b879f62b 100644 --- a/ash/system/night_light/night_light_controller_unittest.cc +++ b/ash/system/night_light/night_light_controller_unittest.cc @@ -8,9 +8,9 @@ #include #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/display/cursor_window_controller.h" #include "ash/display/window_tree_host_manager.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/session/session_types.h" #include "ash/root_window_controller.h" #include "ash/session/session_controller_impl.h" diff --git a/ash/system/palette/palette_tray.cc b/ash/system/palette/palette_tray.cc index 6e2781c6bbdcd5..9c9749e70b76ff 100644 --- a/ash/system/palette/palette_tray.cc +++ b/ash/system/palette/palette_tray.cc @@ -8,7 +8,7 @@ #include "ash/accessibility/accessibility_controller_impl.h" #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/shelf_config.h" #include "ash/public/cpp/stylus_utils.h" #include "ash/public/cpp/system_tray_client.h" diff --git a/ash/system/palette/palette_tray_unittest.cc b/ash/system/palette/palette_tray_unittest.cc index 459616663da758..fd16d3293ee388 100644 --- a/ash/system/palette/palette_tray_unittest.cc +++ b/ash/system/palette/palette_tray_unittest.cc @@ -11,10 +11,10 @@ #include "ash/assistant/test/test_assistant_service.h" #include "ash/assistant/util/assistant_util.h" #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" #include "ash/highlighter/highlighter_controller.h" #include "ash/highlighter/highlighter_controller_test_api.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/assistant/assistant_state.h" #include "ash/public/cpp/stylus_utils.h" #include "ash/root_window_controller.h" diff --git a/ash/system/palette/palette_welcome_bubble.cc b/ash/system/palette/palette_welcome_bubble.cc index c835d6e02c21e7..d53e0bced932ed 100644 --- a/ash/system/palette/palette_welcome_bubble.cc +++ b/ash/system/palette/palette_welcome_bubble.cc @@ -7,7 +7,7 @@ #include #include "ash/assistant/util/assistant_util.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/shell_window_ids.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" diff --git a/ash/system/palette/palette_welcome_bubble_unittest.cc b/ash/system/palette/palette_welcome_bubble_unittest.cc index 919c2307118480..1bca2e0126ab9c 100644 --- a/ash/system/palette/palette_welcome_bubble_unittest.cc +++ b/ash/system/palette/palette_welcome_bubble_unittest.cc @@ -4,7 +4,7 @@ #include "ash/system/palette/palette_welcome_bubble.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/session/test_session_controller_client.h" #include "ash/shell.h" diff --git a/ash/system/pcie_peripheral/pcie_peripheral_notification_controller.cc b/ash/system/pcie_peripheral/pcie_peripheral_notification_controller.cc index 4e2f48bbfd543a..9c34e05cf4b881 100644 --- a/ash/system/pcie_peripheral/pcie_peripheral_notification_controller.cc +++ b/ash/system/pcie_peripheral/pcie_peripheral_notification_controller.cc @@ -6,7 +6,7 @@ #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/new_window_delegate.h" #include "ash/public/cpp/notification_utils.h" #include "ash/public/cpp/system_tray_client.h" diff --git a/ash/system/pcie_peripheral/pcie_peripheral_notification_controller_unittest.cc b/ash/system/pcie_peripheral/pcie_peripheral_notification_controller_unittest.cc index 624d5e77b35d4d..14114d04ed4676 100644 --- a/ash/system/pcie_peripheral/pcie_peripheral_notification_controller_unittest.cc +++ b/ash/system/pcie_peripheral/pcie_peripheral_notification_controller_unittest.cc @@ -7,7 +7,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/test/test_new_window_delegate.h" #include "ash/public/cpp/test/test_system_tray_client.h" #include "ash/session/session_controller_impl.h" diff --git a/ash/system/power/power_prefs.cc b/ash/system/power/power_prefs.cc index 2c9922a0f56246..80a600451ecdd7 100644 --- a/ash/system/power/power_prefs.cc +++ b/ash/system/power/power_prefs.cc @@ -8,7 +8,7 @@ #include #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "base/bind.h" diff --git a/ash/system/power/power_prefs_unittest.cc b/ash/system/power/power_prefs_unittest.cc index cd6953917b83b4..9f5cd56e413fc2 100644 --- a/ash/system/power/power_prefs_unittest.cc +++ b/ash/system/power/power_prefs_unittest.cc @@ -9,7 +9,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/test/shell_test_api.h" #include "ash/session/session_controller_impl.h" #include "ash/session/test_session_controller_client.h" diff --git a/ash/system/session/logout_button_tray.cc b/ash/system/session/logout_button_tray.cc index b48af046c2067c..4abf7f3c4470e0 100644 --- a/ash/system/session/logout_button_tray.cc +++ b/ash/system/session/logout_button_tray.cc @@ -6,7 +6,7 @@ #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/ash_typography.h" #include "ash/resources/vector_icons/vector_icons.h" #include "ash/session/session_controller_impl.h" diff --git a/ash/system/session/logout_button_tray_unittest.cc b/ash/system/session/logout_button_tray_unittest.cc index 49a8bccc97ae6c..330039a91f689f 100644 --- a/ash/system/session/logout_button_tray_unittest.cc +++ b/ash/system/session/logout_button_tray_unittest.cc @@ -4,7 +4,7 @@ #include "ash/system/session/logout_button_tray.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/root_window_controller.h" #include "ash/session/session_controller_impl.h" #include "ash/session/test_session_controller_client.h" diff --git a/ash/system/session/logout_confirmation_controller.cc b/ash/system/session/logout_confirmation_controller.cc index fc68ebea5bbc39..c2c6389d419d76 100644 --- a/ash/system/session/logout_confirmation_controller.cc +++ b/ash/system/session/logout_confirmation_controller.cc @@ -8,8 +8,8 @@ #include #include +#include "ash/constants/ash_pref_names.h" #include "ash/login_status.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/shell_window_ids.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" diff --git a/ash/system/session/logout_confirmation_controller_unittest.cc b/ash/system/session/logout_confirmation_controller_unittest.cc index 743a46fa6e936b..05c622ac047d17 100644 --- a/ash/system/session/logout_confirmation_controller_unittest.cc +++ b/ash/system/session/logout_confirmation_controller_unittest.cc @@ -4,7 +4,7 @@ #include "ash/system/session/logout_confirmation_controller.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/session/test_session_controller_client.h" #include "ash/shell.h" diff --git a/ash/system/unified/top_shortcuts_view.cc b/ash/system/unified/top_shortcuts_view.cc index cbf70cc0bf062d..6b462da2b5f9a8 100644 --- a/ash/system/unified/top_shortcuts_view.cc +++ b/ash/system/unified/top_shortcuts_view.cc @@ -7,7 +7,7 @@ #include #include "ash/accessibility/accessibility_controller_impl.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/ash_view_ids.h" #include "ash/resources/vector_icons/vector_icons.h" #include "ash/session/session_controller_impl.h" diff --git a/ash/system/unified/top_shortcuts_view_unittest.cc b/ash/system/unified/top_shortcuts_view_unittest.cc index 1d81b889317741..b21bd0c3080d1e 100644 --- a/ash/system/unified/top_shortcuts_view_unittest.cc +++ b/ash/system/unified/top_shortcuts_view_unittest.cc @@ -4,7 +4,7 @@ #include "ash/system/unified/top_shortcuts_view.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/test_session_controller_client.h" #include "ash/system/unified/collapse_button.h" #include "ash/system/unified/sign_out_button.h" diff --git a/ash/touch/touch_devices_controller.cc b/ash/touch/touch_devices_controller.cc index 9b4b6dcf7a38cd..e683d300039362 100644 --- a/ash/touch/touch_devices_controller.cc +++ b/ash/touch/touch_devices_controller.cc @@ -6,8 +6,8 @@ #include +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/root_window_controller.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" diff --git a/ash/touch/touch_devices_controller_unittest.cc b/ash/touch/touch_devices_controller_unittest.cc index f38042de2f7d55..eeb8e056c69b69 100644 --- a/ash/touch/touch_devices_controller_unittest.cc +++ b/ash/touch/touch_devices_controller_unittest.cc @@ -5,8 +5,8 @@ #include "ash/touch/touch_devices_controller.h" #include "ash/accelerators/debug_commands.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/ash_prefs.h" #include "ash/session/session_controller_impl.h" #include "ash/session/test_session_controller_client.h" diff --git a/ash/wallpaper/wallpaper_controller_impl.cc b/ash/wallpaper/wallpaper_controller_impl.cc index 5cebb2b3c04a54..335e166215c3a5 100644 --- a/ash/wallpaper/wallpaper_controller_impl.cc +++ b/ash/wallpaper/wallpaper_controller_impl.cc @@ -10,10 +10,10 @@ #include #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" #include "ash/display/window_tree_host_manager.h" #include "ash/login/ui/login_constants.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/image_downloader.h" #include "ash/public/cpp/shell_window_ids.h" #include "ash/public/cpp/wallpaper/online_wallpaper_params.h" diff --git a/ash/wallpaper/wallpaper_controller_unittest.cc b/ash/wallpaper/wallpaper_controller_unittest.cc index d6f1e6f2f20705..8481c87e84a6dc 100644 --- a/ash/wallpaper/wallpaper_controller_unittest.cc +++ b/ash/wallpaper/wallpaper_controller_unittest.cc @@ -9,8 +9,8 @@ #include #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/shell_window_ids.h" #include "ash/public/cpp/test/shell_test_api.h" #include "ash/public/cpp/test/test_image_downloader.h" diff --git a/ash/wm/desks/desks_restore_util.cc b/ash/wm/desks/desks_restore_util.cc index ecd4468d200ed9..f20b6c98c33f6c 100644 --- a/ash/wm/desks/desks_restore_util.cc +++ b/ash/wm/desks/desks_restore_util.cc @@ -4,7 +4,7 @@ #include "ash/wm/desks/desks_restore_util.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "ash/wm/desks/desk.h" diff --git a/ash/wm/desks/desks_unittests.cc b/ash/wm/desks/desks_unittests.cc index d0827cda0d6f8e..c2c78e93647e6a 100644 --- a/ash/wm/desks/desks_unittests.cc +++ b/ash/wm/desks/desks_unittests.cc @@ -10,13 +10,13 @@ #include "ash/app_list/app_list_presenter_impl.h" #include "ash/app_list/views/app_list_view.h" #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/display/screen_orientation_controller.h" #include "ash/display/screen_orientation_controller_test_api.h" #include "ash/keyboard/ui/keyboard_ui_controller.h" #include "ash/keyboard/ui/test/keyboard_test_util.h" #include "ash/multi_user/multi_user_window_manager_impl.h" #include "ash/public/cpp/app_list/app_list_types.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/ash_prefs.h" #include "ash/public/cpp/event_rewriter_controller.h" #include "ash/public/cpp/multi_user_window_manager.h" diff --git a/ash/wm/gestures/back_gesture/back_gesture_contextual_nudge_controller_impl_unittest.cc b/ash/wm/gestures/back_gesture/back_gesture_contextual_nudge_controller_impl_unittest.cc index 1b492fe523f28c..985227fce3b34d 100644 --- a/ash/wm/gestures/back_gesture/back_gesture_contextual_nudge_controller_impl_unittest.cc +++ b/ash/wm/gestures/back_gesture/back_gesture_contextual_nudge_controller_impl_unittest.cc @@ -5,7 +5,7 @@ #include "ash/wm/gestures/back_gesture/back_gesture_contextual_nudge_controller_impl.h" #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shelf/contextual_tooltip.h" #include "ash/shell.h" diff --git a/ash/wm/gestures/wm_gesture_handler.cc b/ash/wm/gestures/wm_gesture_handler.cc index 21505e15854530..a6fecff0229fe5 100644 --- a/ash/wm/gestures/wm_gesture_handler.cc +++ b/ash/wm/gestures/wm_gesture_handler.cc @@ -5,7 +5,7 @@ #include "ash/wm/gestures/wm_gesture_handler.h" #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/toast_data.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" diff --git a/ash/wm/gestures/wm_gesture_handler_unittest.cc b/ash/wm/gestures/wm_gesture_handler_unittest.cc index 1f09950f41bf6f..dbdc0ffbf56ac2 100644 --- a/ash/wm/gestures/wm_gesture_handler_unittest.cc +++ b/ash/wm/gestures/wm_gesture_handler_unittest.cc @@ -5,7 +5,7 @@ #include "ash/wm/gestures/wm_gesture_handler.h" #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "ash/test/ash_test_base.h" diff --git a/ash/wm/window_cycle/window_cycle_controller.cc b/ash/wm/window_cycle/window_cycle_controller.cc index 56654d619524f1..73d58106ef2fe9 100644 --- a/ash/wm/window_cycle/window_cycle_controller.cc +++ b/ash/wm/window_cycle/window_cycle_controller.cc @@ -7,12 +7,12 @@ #include "ash/accelerators/accelerator_controller_impl.h" #include "ash/accessibility/accessibility_controller_impl.h" #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/events/event_rewriter_controller_impl.h" #include "ash/metrics/task_switch_metrics_recorder.h" #include "ash/metrics/task_switch_source.h" #include "ash/metrics/user_metrics_recorder.h" #include "ash/public/cpp/accelerators.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/shell_window_ids.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" diff --git a/ash/wm/window_cycle/window_cycle_controller_unittest.cc b/ash/wm/window_cycle/window_cycle_controller_unittest.cc index be25b55db4c9e3..af9dcce1698ffc 100644 --- a/ash/wm/window_cycle/window_cycle_controller_unittest.cc +++ b/ash/wm/window_cycle/window_cycle_controller_unittest.cc @@ -13,11 +13,11 @@ #include "ash/app_list/app_list_controller_impl.h" #include "ash/app_list/test/app_list_test_helper.h" #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/focus_cycler.h" #include "ash/frame_throttler/frame_throttling_controller.h" #include "ash/frame_throttler/mock_frame_throttling_observer.h" #include "ash/multi_user/multi_user_window_manager_impl.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/ash_prefs.h" #include "ash/public/cpp/multi_user_window_manager.h" #include "ash/public/cpp/multi_user_window_manager_delegate.h" diff --git a/ash/wm/window_cycle/window_cycle_event_filter.cc b/ash/wm/window_cycle/window_cycle_event_filter.cc index cac3a03e4b4989..fb4b843f0873ed 100644 --- a/ash/wm/window_cycle/window_cycle_event_filter.cc +++ b/ash/wm/window_cycle/window_cycle_event_filter.cc @@ -5,8 +5,8 @@ #include "ash/wm/window_cycle/window_cycle_event_filter.h" #include "ash/accelerators/debug_commands.h" +#include "ash/constants/ash_pref_names.h" #include "ash/display/screen_ash.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "ash/wm/window_cycle/window_cycle_controller.h" diff --git a/ash/wm/window_cycle/window_cycle_tab_slider.cc b/ash/wm/window_cycle/window_cycle_tab_slider.cc index 70925b6f658d9e..c998dd8d7ec558 100644 --- a/ash/wm/window_cycle/window_cycle_tab_slider.cc +++ b/ash/wm/window_cycle/window_cycle_tab_slider.cc @@ -4,7 +4,6 @@ #include "ash/wm/window_cycle/window_cycle_tab_slider.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/session/session_controller_impl.h" #include "ash/shell.h" #include "ash/strings/grit/ash_strings.h" diff --git a/chrome/browser/ash/accessibility/accessibility_common_browsertest.cc b/chrome/browser/ash/accessibility/accessibility_common_browsertest.cc index f1e37790f40b17..db571eb5132206 100644 --- a/chrome/browser/ash/accessibility/accessibility_common_browsertest.cc +++ b/chrome/browser/ash/accessibility/accessibility_common_browsertest.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "chrome/browser/ash/accessibility/accessibility_manager.h" #include "chrome/browser/ash/accessibility/accessibility_test_utils.h" #include "chrome/browser/extensions/component_loader.h" diff --git a/chrome/browser/ash/accessibility/accessibility_manager.cc b/chrome/browser/ash/accessibility/accessibility_manager.cc index 71954fa9942805..799180a2f98263 100644 --- a/chrome/browser/ash/accessibility/accessibility_manager.cc +++ b/chrome/browser/ash/accessibility/accessibility_manager.cc @@ -14,13 +14,13 @@ #include "ash/accessibility/sticky_keys/sticky_keys_controller.h" #include "ash/components/audio/sounds.h" #include "ash/constants/ash_constants.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" #include "ash/public/cpp/accelerators.h" #include "ash/public/cpp/accessibility_controller.h" #include "ash/public/cpp/accessibility_controller_enums.h" #include "ash/public/cpp/accessibility_focus_ring_controller.h" #include "ash/public/cpp/accessibility_focus_ring_info.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/root_window_controller.h" #include "ash/shell.h" #include "base/bind.h" diff --git a/chrome/browser/ash/accessibility/accessibility_manager_browsertest.cc b/chrome/browser/ash/accessibility/accessibility_manager_browsertest.cc index f4bf928b0bf674..05895d578b864d 100644 --- a/chrome/browser/ash/accessibility/accessibility_manager_browsertest.cc +++ b/chrome/browser/ash/accessibility/accessibility_manager_browsertest.cc @@ -4,7 +4,7 @@ #include "chrome/browser/ash/accessibility/accessibility_manager.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/test/accessibility_controller_test_api.h" #include "base/bind.h" #include "base/callback_helpers.h" diff --git a/chrome/browser/ash/accessibility/dictation.cc b/chrome/browser/ash/accessibility/dictation.cc index fc22d7b87a5bdd..6d47a522e42a86 100644 --- a/chrome/browser/ash/accessibility/dictation.cc +++ b/chrome/browser/ash/accessibility/dictation.cc @@ -5,7 +5,7 @@ #include "chrome/browser/ash/accessibility/dictation.h" #include "ash/components/audio/sounds.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/containers/fixed_flat_map.h" #include "base/containers/flat_map.h" #include "base/metrics/histogram_functions.h" diff --git a/chrome/browser/ash/accessibility/magnification_manager.cc b/chrome/browser/ash/accessibility/magnification_manager.cc index aca1890e06a40c..f4f63327a0c419 100644 --- a/chrome/browser/ash/accessibility/magnification_manager.cc +++ b/chrome/browser/ash/accessibility/magnification_manager.cc @@ -9,7 +9,7 @@ #include "ash/accessibility/magnifier/docked_magnifier_controller.h" #include "ash/accessibility/magnifier/fullscreen_magnifier_controller.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/shell.h" #include "base/bind.h" #include "chrome/browser/ash/accessibility/accessibility_manager.h" diff --git a/chrome/browser/ash/accessibility/magnification_manager_browsertest.cc b/chrome/browser/ash/accessibility/magnification_manager_browsertest.cc index feb5838bd89bee..f79331cf8f1688 100644 --- a/chrome/browser/ash/accessibility/magnification_manager_browsertest.cc +++ b/chrome/browser/ash/accessibility/magnification_manager_browsertest.cc @@ -5,8 +5,8 @@ #include #include "ash/accessibility/magnifier/fullscreen_magnifier_controller.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/shell.h" #include "base/bind.h" #include "base/command_line.h" diff --git a/chrome/browser/ash/accessibility/switch_access_browsertest.cc b/chrome/browser/ash/accessibility/switch_access_browsertest.cc index ff3320a44934ff..9c883594ebf31a 100644 --- a/chrome/browser/ash/accessibility/switch_access_browsertest.cc +++ b/chrome/browser/ash/accessibility/switch_access_browsertest.cc @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/accessibility_controller.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/window_tree_host_lookup.h" #include "base/files/file_path.h" #include "base/files/file_util.h" diff --git a/chrome/browser/ash/arc/bluetooth/arc_bluetooth_bridge.cc b/chrome/browser/ash/arc/bluetooth/arc_bluetooth_bridge.cc index 64618ba0ada9ba..e8293e6b077415 100644 --- a/chrome/browser/ash/arc/bluetooth/arc_bluetooth_bridge.cc +++ b/chrome/browser/ash/arc/bluetooth/arc_bluetooth_bridge.cc @@ -15,7 +15,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/bind.h" #include "base/callback.h" #include "base/callback_helpers.h" diff --git a/chrome/browser/ash/arc/input_method_manager/arc_input_method_manager_service.cc b/chrome/browser/ash/arc/input_method_manager/arc_input_method_manager_service.cc index b3297ac2bffe78..abd71ca457dca4 100644 --- a/chrome/browser/ash/arc/input_method_manager/arc_input_method_manager_service.cc +++ b/chrome/browser/ash/arc/input_method_manager/arc_input_method_manager_service.cc @@ -7,7 +7,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/keyboard/arc/arc_input_method_bounds_tracker.h" #include "ash/public/cpp/keyboard/keyboard_switches.h" #include "ash/public/cpp/tablet_mode.h" diff --git a/chrome/browser/ash/arc/input_method_manager/arc_input_method_manager_service_unittest.cc b/chrome/browser/ash/arc/input_method_manager/arc_input_method_manager_service_unittest.cc index 1870422b0181d2..d3cc8169d2a6fa 100644 --- a/chrome/browser/ash/arc/input_method_manager/arc_input_method_manager_service_unittest.cc +++ b/chrome/browser/ash/arc/input_method_manager/arc_input_method_manager_service_unittest.cc @@ -9,7 +9,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/keyboard/arc/arc_input_method_bounds_tracker.h" #include "ash/public/cpp/keyboard/keyboard_switches.h" #include "ash/public/cpp/tablet_mode.h" diff --git a/chrome/browser/ash/arc/input_method_manager/arc_input_method_state.cc b/chrome/browser/ash/arc/input_method_manager/arc_input_method_state.cc index 00518eded5362b..18c0eef2c2daec 100644 --- a/chrome/browser/ash/arc/input_method_manager/arc_input_method_state.cc +++ b/chrome/browser/ash/arc/input_method_manager/arc_input_method_state.cc @@ -6,7 +6,6 @@ #include -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/keyboard/keyboard_switches.h" #include "ash/public/cpp/tablet_mode.h" #include "base/command_line.h" diff --git a/chrome/browser/ash/arc/intent_helper/arc_settings_service.cc b/chrome/browser/ash/arc/intent_helper/arc_settings_service.cc index 16a3e53e31e303..f92cfcad5e42e2 100644 --- a/chrome/browser/ash/arc/intent_helper/arc_settings_service.cc +++ b/chrome/browser/ash/arc/intent_helper/arc_settings_service.cc @@ -6,7 +6,7 @@ #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/bind.h" #include "base/command_line.h" #include "base/gtest_prod_util.h" diff --git a/chrome/browser/ash/arc/wallpaper/arc_wallpaper_service_unittest.cc b/chrome/browser/ash/arc/wallpaper/arc_wallpaper_service_unittest.cc index f16a4070fc69b6..0597819a7e0148 100644 --- a/chrome/browser/ash/arc/wallpaper/arc_wallpaper_service_unittest.cc +++ b/chrome/browser/ash/arc/wallpaper/arc_wallpaper_service_unittest.cc @@ -9,7 +9,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/bind.h" #include "base/macros.h" #include "base/memory/ptr_util.h" diff --git a/chrome/browser/ash/crosapi/prefs_ash.cc b/chrome/browser/ash/crosapi/prefs_ash.cc index da08817afeb64e..096e8d3b1827af 100644 --- a/chrome/browser/ash/crosapi/prefs_ash.cc +++ b/chrome/browser/ash/crosapi/prefs_ash.cc @@ -6,7 +6,7 @@ #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/bind.h" #include "base/check.h" #include "chrome/browser/profiles/profile_manager.h" diff --git a/chrome/browser/ash/crosapi/prefs_ash_unittest.cc b/chrome/browser/ash/crosapi/prefs_ash_unittest.cc index d5418f1c20af3d..cad4f23524d0af 100644 --- a/chrome/browser/ash/crosapi/prefs_ash_unittest.cc +++ b/chrome/browser/ash/crosapi/prefs_ash_unittest.cc @@ -6,7 +6,7 @@ #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/callback_helpers.h" #include "base/test/bind.h" #include "chrome/test/base/scoped_testing_local_state.h" diff --git a/chrome/browser/ash/display/display_prefs_browsertest.cc b/chrome/browser/ash/display/display_prefs_browsertest.cc index 23a2aa22b30e83..ce3d490efb42a1 100644 --- a/chrome/browser/ash/display/display_prefs_browsertest.cc +++ b/chrome/browser/ash/display/display_prefs_browsertest.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/shell.h" #include "base/run_loop.h" #include "base/strings/string_number_conversions.h" diff --git a/chrome/browser/ash/login/existing_user_controller.cc b/chrome/browser/ash/login/existing_user_controller.cc index 88f759da395969..0ae72975bac2d8 100644 --- a/chrome/browser/ash/login/existing_user_controller.cc +++ b/chrome/browser/ash/login/existing_user_controller.cc @@ -8,8 +8,8 @@ #include #include +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/login_screen.h" #include "ash/public/cpp/notification_utils.h" #include "base/barrier_closure.h" @@ -288,7 +288,7 @@ void SetLoginExtensionApiLaunchExtensionIdPref(const AccountId& account_id, Profile* profile = chromeos::ProfileHelper::Get()->GetProfileByUser(user); DCHECK(profile); PrefService* prefs = profile->GetPrefs(); - prefs->SetString(prefs::kLoginExtensionApiLaunchExtensionId, extension_id); + prefs->SetString(::prefs::kLoginExtensionApiLaunchExtensionId, extension_id); prefs->CommitPendingWrite(); } diff --git a/chrome/browser/ash/login/lock_screen_utils.cc b/chrome/browser/ash/login/lock_screen_utils.cc index 4bf6e87df965a2..c85fe4db084c5c 100644 --- a/chrome/browser/ash/login/lock_screen_utils.cc +++ b/chrome/browser/ash/login/lock_screen_utils.cc @@ -5,7 +5,7 @@ #include "chrome/browser/ash/login/lock_screen_utils.h" #include "ash/constants/ash_constants.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/containers/contains.h" #include "chrome/browser/ash/login/login_pref_names.h" #include "chrome/browser/ash/profiles/profile_helper.h" diff --git a/chrome/browser/ash/login/oobe_interactive_ui_test.cc b/chrome/browser/ash/login/oobe_interactive_ui_test.cc index 7684c83a45b3c8..d9b8edaa7175b0 100644 --- a/chrome/browser/ash/login/oobe_interactive_ui_test.cc +++ b/chrome/browser/ash/login/oobe_interactive_ui_test.cc @@ -5,8 +5,8 @@ #include #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/login_screen_test_api.h" #include "ash/public/cpp/test/shell_test_api.h" #include "base/bind.h" diff --git a/chrome/browser/ash/login/quick_unlock/pin_storage_cryptohome.cc b/chrome/browser/ash/login/quick_unlock/pin_storage_cryptohome.cc index bfc4e92fe088a8..5d0816567fe6d5 100644 --- a/chrome/browser/ash/login/quick_unlock/pin_storage_cryptohome.cc +++ b/chrome/browser/ash/login/quick_unlock/pin_storage_cryptohome.cc @@ -4,7 +4,7 @@ #include "chrome/browser/ash/login/quick_unlock/pin_storage_cryptohome.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/bind.h" #include "base/logging.h" #include "base/threading/thread_task_runner_handle.h" diff --git a/chrome/browser/ash/login/quick_unlock/pin_storage_prefs.cc b/chrome/browser/ash/login/quick_unlock/pin_storage_prefs.cc index f20c1e27553e6c..fca51627c8c9bc 100644 --- a/chrome/browser/ash/login/quick_unlock/pin_storage_prefs.cc +++ b/chrome/browser/ash/login/quick_unlock/pin_storage_prefs.cc @@ -4,7 +4,7 @@ #include "chrome/browser/ash/login/quick_unlock/pin_storage_prefs.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "chrome/browser/ash/login/quick_unlock/pin_backend.h" #include "chrome/browser/ash/login/quick_unlock/quick_unlock_utils.h" #include "chrome/common/pref_names.h" @@ -17,7 +17,7 @@ namespace quick_unlock { // static void PinStoragePrefs::RegisterProfilePrefs(PrefRegistrySimple* registry) { registry->RegisterStringPref(ash::prefs::kQuickUnlockPinSalt, ""); - registry->RegisterStringPref(prefs::kQuickUnlockPinSecret, ""); + registry->RegisterStringPref(::prefs::kQuickUnlockPinSecret, ""); } PinStoragePrefs::PinStoragePrefs(PrefService* pref_service) @@ -43,12 +43,12 @@ void PinStoragePrefs::SetPin(const std::string& pin) { PinBackend::ComputeSecret(pin, salt, Key::KEY_TYPE_PASSWORD_PLAIN); pref_service_->SetString(ash::prefs::kQuickUnlockPinSalt, salt); - pref_service_->SetString(prefs::kQuickUnlockPinSecret, secret); + pref_service_->SetString(::prefs::kQuickUnlockPinSecret, secret); } void PinStoragePrefs::RemovePin() { pref_service_->SetString(ash::prefs::kQuickUnlockPinSalt, ""); - pref_service_->SetString(prefs::kQuickUnlockPinSecret, ""); + pref_service_->SetString(::prefs::kQuickUnlockPinSecret, ""); } std::string PinStoragePrefs::PinSalt() const { @@ -56,7 +56,7 @@ std::string PinStoragePrefs::PinSalt() const { } std::string PinStoragePrefs::PinSecret() const { - return pref_service_->GetString(prefs::kQuickUnlockPinSecret); + return pref_service_->GetString(::prefs::kQuickUnlockPinSecret); } bool PinStoragePrefs::IsPinAuthenticationAvailable() const { diff --git a/chrome/browser/ash/login/quick_unlock/pin_storage_prefs_unittest.cc b/chrome/browser/ash/login/quick_unlock/pin_storage_prefs_unittest.cc index 8975a5aa1a69d2..2d3f20e7e39ecb 100644 --- a/chrome/browser/ash/login/quick_unlock/pin_storage_prefs_unittest.cc +++ b/chrome/browser/ash/login/quick_unlock/pin_storage_prefs_unittest.cc @@ -4,7 +4,7 @@ #include "chrome/browser/ash/login/quick_unlock/pin_storage_prefs.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "chrome/browser/ash/login/quick_unlock/quick_unlock_factory.h" #include "chrome/browser/ash/login/quick_unlock/quick_unlock_storage.h" #include "chrome/browser/ash/login/quick_unlock/quick_unlock_utils.h" @@ -73,7 +73,7 @@ TEST_F(PinStoragePrefsUnitTest, PinStorageWritesToPrefs) { PrefService* prefs = profile_->GetPrefs(); EXPECT_EQ("", prefs->GetString(ash::prefs::kQuickUnlockPinSalt)); - EXPECT_EQ("", prefs->GetString(prefs::kQuickUnlockPinSecret)); + EXPECT_EQ("", prefs->GetString(::prefs::kQuickUnlockPinSecret)); PinStoragePrefsTestApi pin_storage_test(PinStoragePrefs()); @@ -82,14 +82,14 @@ TEST_F(PinStoragePrefsUnitTest, PinStorageWritesToPrefs) { EXPECT_EQ(pin_storage_test.PinSalt(), prefs->GetString(ash::prefs::kQuickUnlockPinSalt)); EXPECT_EQ(pin_storage_test.PinSecret(), - prefs->GetString(prefs::kQuickUnlockPinSecret)); + prefs->GetString(::prefs::kQuickUnlockPinSecret)); EXPECT_NE("", pin_storage_test.PinSalt()); EXPECT_NE("", pin_storage_test.PinSecret()); PinStoragePrefs()->RemovePin(); EXPECT_FALSE(PinStoragePrefs()->IsPinSet()); EXPECT_EQ("", prefs->GetString(ash::prefs::kQuickUnlockPinSalt)); - EXPECT_EQ("", prefs->GetString(prefs::kQuickUnlockPinSecret)); + EXPECT_EQ("", prefs->GetString(::prefs::kQuickUnlockPinSecret)); } // Verifies that: diff --git a/chrome/browser/ash/login/screens/gesture_navigation_screen.cc b/chrome/browser/ash/login/screens/gesture_navigation_screen.cc index 564cabd6d8bf93..4562f9a21e7455 100644 --- a/chrome/browser/ash/login/screens/gesture_navigation_screen.cc +++ b/chrome/browser/ash/login/screens/gesture_navigation_screen.cc @@ -5,8 +5,8 @@ #include "chrome/browser/ash/login/screens/gesture_navigation_screen.h" #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/tablet_mode.h" #include "base/metrics/histogram_functions.h" #include "chrome/browser/ash/accessibility/accessibility_manager.h" diff --git a/chrome/browser/ash/login/screens/gesture_navigation_screen_browsertest.cc b/chrome/browser/ash/login/screens/gesture_navigation_screen_browsertest.cc index 4bdc02fdc2c3a5..4d8d2271580498 100644 --- a/chrome/browser/ash/login/screens/gesture_navigation_screen_browsertest.cc +++ b/chrome/browser/ash/login/screens/gesture_navigation_screen_browsertest.cc @@ -8,8 +8,8 @@ #include #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/test/shell_test_api.h" #include "base/bind.h" #include "base/run_loop.h" diff --git a/chrome/browser/ash/login/screens/marketing_opt_in_screen.cc b/chrome/browser/ash/login/screens/marketing_opt_in_screen.cc index 91dd2d1f8c49e6..c1c61983955d0d 100644 --- a/chrome/browser/ash/login/screens/marketing_opt_in_screen.cc +++ b/chrome/browser/ash/login/screens/marketing_opt_in_screen.cc @@ -9,7 +9,7 @@ #include #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/login_screen.h" #include "base/bind.h" #include "base/command_line.h" diff --git a/chrome/browser/ash/login/screens/marketing_opt_in_screen_browsertest.cc b/chrome/browser/ash/login/screens/marketing_opt_in_screen_browsertest.cc index 048a95cb11af33..676b1d1475af4b 100644 --- a/chrome/browser/ash/login/screens/marketing_opt_in_screen_browsertest.cc +++ b/chrome/browser/ash/login/screens/marketing_opt_in_screen_browsertest.cc @@ -9,7 +9,7 @@ #include #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/shelf_test_api.h" #include "ash/public/cpp/test/shell_test_api.h" #include "base/bind.h" diff --git a/chrome/browser/ash/login/ui/user_adding_screen_browsertest.cc b/chrome/browser/ash/login/ui/user_adding_screen_browsertest.cc index 75b6fd4bde72ef..085d6697d6b1c3 100644 --- a/chrome/browser/ash/login/ui/user_adding_screen_browsertest.cc +++ b/chrome/browser/ash/login/ui/user_adding_screen_browsertest.cc @@ -5,7 +5,7 @@ #include #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/login_screen_test_api.h" #include "base/run_loop.h" #include "base/test/metrics/histogram_tester.h" @@ -224,11 +224,11 @@ IN_PROC_BROWSER_TEST_F(UserAddingScreenTest, AddingSeveralUsers) { // One of the users has the primary-only policy. // List of unlock users doesn't depend on kEnableLockScreen preference. prefs1->SetBoolean(ash::prefs::kEnableAutoScreenLock, true); - prefs1->SetString(prefs::kMultiProfileUserBehavior, + prefs1->SetString(::prefs::kMultiProfileUserBehavior, MultiProfileUserController::kBehaviorPrimaryOnly); - prefs2->SetString(prefs::kMultiProfileUserBehavior, + prefs2->SetString(::prefs::kMultiProfileUserBehavior, MultiProfileUserController::kBehaviorUnrestricted); - prefs3->SetString(prefs::kMultiProfileUserBehavior, + prefs3->SetString(::prefs::kMultiProfileUserBehavior, MultiProfileUserController::kBehaviorUnrestricted); user_manager::UserList unlock_users = user_manager->GetUnlockUsers(); ASSERT_EQ(unlock_users.size(), 1u); @@ -240,7 +240,7 @@ IN_PROC_BROWSER_TEST_F(UserAddingScreenTest, AddingSeveralUsers) { EXPECT_EQ(users[0].account_id, unlock_users[0]->GetAccountId()); // If all users have unrestricted policy then anyone can perform unlock. - prefs1->SetString(prefs::kMultiProfileUserBehavior, + prefs1->SetString(::prefs::kMultiProfileUserBehavior, MultiProfileUserController::kBehaviorUnrestricted); unlock_users = user_manager->GetUnlockUsers(); ASSERT_EQ(unlock_users.size(), 3u); @@ -266,7 +266,7 @@ IN_PROC_BROWSER_TEST_F(UserAddingScreenTest, AddingSeveralUsers) { // In this scenario this user is not allowed in multi-profile session but // if that user happened to still be part of multi-profile session it should // not be listed on screen lock. - prefs3->SetString(prefs::kMultiProfileUserBehavior, + prefs3->SetString(::prefs::kMultiProfileUserBehavior, MultiProfileUserController::kBehaviorNotAllowed); unlock_users = user_manager->GetUnlockUsers(); ASSERT_EQ(unlock_users.size(), 2u); diff --git a/chrome/browser/ash/login/users/chrome_user_manager_impl.cc b/chrome/browser/ash/login/users/chrome_user_manager_impl.cc index 0b3d2a660c6d71..0d167d739d78d6 100644 --- a/chrome/browser/ash/login/users/chrome_user_manager_impl.cc +++ b/chrome/browser/ash/login/users/chrome_user_manager_impl.cc @@ -11,8 +11,8 @@ #include #include +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/session/session_controller.h" #include "base/bind.h" #include "base/callback_helpers.h" diff --git a/chrome/browser/ash/login/users/user_manager_unittest.cc b/chrome/browser/ash/login/users/user_manager_unittest.cc index dbae321079ff1f..f2a2f07aea5e86 100644 --- a/chrome/browser/ash/login/users/user_manager_unittest.cc +++ b/chrome/browser/ash/login/users/user_manager_unittest.cc @@ -6,8 +6,8 @@ #include #include +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "base/command_line.h" #include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" diff --git a/chrome/browser/ash/policy/handlers/configuration_policy_handler_chromeos.cc b/chrome/browser/ash/policy/handlers/configuration_policy_handler_chromeos.cc index 947ab9dcb36fc3..c4d2768ea75ed4 100644 --- a/chrome/browser/ash/policy/handlers/configuration_policy_handler_chromeos.cc +++ b/chrome/browser/ash/policy/handlers/configuration_policy_handler_chromeos.cc @@ -10,7 +10,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/callback.h" #include "base/check.h" #include "base/json/json_reader.h" diff --git a/chrome/browser/ash/policy/handlers/configuration_policy_handler_chromeos_unittest.cc b/chrome/browser/ash/policy/handlers/configuration_policy_handler_chromeos_unittest.cc index eb18823ccfc1b2..2165a9765c577e 100644 --- a/chrome/browser/ash/policy/handlers/configuration_policy_handler_chromeos_unittest.cc +++ b/chrome/browser/ash/policy/handlers/configuration_policy_handler_chromeos_unittest.cc @@ -7,7 +7,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/callback.h" #include "base/json/json_reader.h" #include "base/macros.h" diff --git a/chrome/browser/ash/policy/handlers/system_features_disable_list_policy_handler.cc b/chrome/browser/ash/policy/handlers/system_features_disable_list_policy_handler.cc index fe3bb1d01decfe..23947e74380d92 100644 --- a/chrome/browser/ash/policy/handlers/system_features_disable_list_policy_handler.cc +++ b/chrome/browser/ash/policy/handlers/system_features_disable_list_policy_handler.cc @@ -4,7 +4,7 @@ #include "system_features_disable_list_policy_handler.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/containers/contains.h" #include "base/logging.h" #include "base/metrics/histogram_functions.h" diff --git a/chrome/browser/ash/policy/handlers/system_features_disable_list_policy_handler_unittest.cc b/chrome/browser/ash/policy/handlers/system_features_disable_list_policy_handler_unittest.cc index e86ad27a56c6e2..7c473a399bfaec 100644 --- a/chrome/browser/ash/policy/handlers/system_features_disable_list_policy_handler_unittest.cc +++ b/chrome/browser/ash/policy/handlers/system_features_disable_list_policy_handler_unittest.cc @@ -4,7 +4,7 @@ #include "chrome/browser/ash/policy/handlers/system_features_disable_list_policy_handler.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/test/metrics/histogram_tester.h" #include "base/values.h" #include "components/policy/core/common/policy_map.h" diff --git a/chrome/browser/ash/power/auto_screen_brightness/adapter.cc b/chrome/browser/ash/power/auto_screen_brightness/adapter.cc index 77ce29cab58e60..d8d7af1488160f 100644 --- a/chrome/browser/ash/power/auto_screen_brightness/adapter.cc +++ b/chrome/browser/ash/power/auto_screen_brightness/adapter.cc @@ -7,7 +7,7 @@ #include #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/bind.h" #include "base/logging.h" #include "base/memory/ptr_util.h" diff --git a/chrome/browser/ash/power/auto_screen_brightness/adapter_unittest.cc b/chrome/browser/ash/power/auto_screen_brightness/adapter_unittest.cc index 8e05239c2282a0..c6fa187c9dd22d 100644 --- a/chrome/browser/ash/power/auto_screen_brightness/adapter_unittest.cc +++ b/chrome/browser/ash/power/auto_screen_brightness/adapter_unittest.cc @@ -9,7 +9,7 @@ #include #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/files/scoped_temp_dir.h" #include "base/memory/ptr_util.h" #include "base/task/thread_pool/thread_pool_instance.h" diff --git a/chrome/browser/ash/power/idle_action_warning_observer.cc b/chrome/browser/ash/power/idle_action_warning_observer.cc index 7239f565f0615b..da346cefeaa1b7 100644 --- a/chrome/browser/ash/power/idle_action_warning_observer.cc +++ b/chrome/browser/ash/power/idle_action_warning_observer.cc @@ -4,7 +4,7 @@ #include "chrome/browser/ash/power/idle_action_warning_observer.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/metrics/histogram_macros.h" #include "base/time/time.h" #include "chrome/browser/ash/login/demo_mode/demo_session.h" diff --git a/chrome/browser/ash/power/ml/adaptive_screen_brightness_manager.cc b/chrome/browser/ash/power/ml/adaptive_screen_brightness_manager.cc index 198521365a18fa..30765a3d3bff98 100644 --- a/chrome/browser/ash/power/ml/adaptive_screen_brightness_manager.cc +++ b/chrome/browser/ash/power/ml/adaptive_screen_brightness_manager.cc @@ -7,8 +7,8 @@ #include #include +#include "ash/constants/ash_pref_names.h" #include "ash/constants/devicetype.h" -#include "ash/public/cpp/ash_pref_names.h" #include "base/bind.h" #include "base/process/launch.h" #include "base/task/post_task.h" diff --git a/chrome/browser/ash/power/ml/user_activity_manager.cc b/chrome/browser/ash/power/ml/user_activity_manager.cc index c877663a686590..c78458cae529ca 100644 --- a/chrome/browser/ash/power/ml/user_activity_manager.cc +++ b/chrome/browser/ash/power/ml/user_activity_manager.cc @@ -8,8 +8,8 @@ #include "ash/constants/app_types.h" #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/devicetype.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/shell.h" #include "ash/wm/mru_window_tracker.h" #include "base/bind.h" diff --git a/chrome/browser/ash/system/tray_accessibility_browsertest.cc b/chrome/browser/ash/system/tray_accessibility_browsertest.cc index 4e3653700fb999..9b36a9cea14985 100644 --- a/chrome/browser/ash/system/tray_accessibility_browsertest.cc +++ b/chrome/browser/ash/system/tray_accessibility_browsertest.cc @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/ash_view_ids.h" #include "ash/public/cpp/system_tray_test_api.h" #include "base/callback.h" diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc index 8789395ad3cf4d..e1d535045080d2 100644 --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc @@ -416,8 +416,8 @@ #include "sandbox/policy/mac/params.h" #include "sandbox/policy/mac/sandbox_mac.h" #elif BUILDFLAG(IS_CHROMEOS_ASH) +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/tablet_mode.h" #include "ash/webui/scanning/url_constants.h" #include "chrome/app/chrome_crash_reporter_client.h" diff --git a/chrome/browser/chromeos/cryptauth/client_app_metadata_provider_service.cc b/chrome/browser/chromeos/cryptauth/client_app_metadata_provider_service.cc index bd192b5f49cf83..1c833d610a2ac2 100644 --- a/chrome/browser/chromeos/cryptauth/client_app_metadata_provider_service.cc +++ b/chrome/browser/chromeos/cryptauth/client_app_metadata_provider_service.cc @@ -7,7 +7,7 @@ #include #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/callback.h" #include "base/feature_list.h" #include "base/linux_util.h" @@ -125,8 +125,9 @@ void LogInstanceIdTokenFetchRetries(int count) { // static void ClientAppMetadataProviderService::RegisterProfilePrefs( PrefRegistrySimple* registry) { - registry->RegisterStringPref(prefs::kCryptAuthInstanceId, std::string()); - registry->RegisterStringPref(prefs::kCryptAuthInstanceIdToken, std::string()); + registry->RegisterStringPref(::prefs::kCryptAuthInstanceId, std::string()); + registry->RegisterStringPref(::prefs::kCryptAuthInstanceIdToken, + std::string()); } // static @@ -245,12 +246,12 @@ void ClientAppMetadataProviderService::OnInstanceIdFetched( const std::string& instance_id) { DCHECK(!instance_id.empty()); std::string previous_instance_id = - pref_service_->GetString(prefs::kCryptAuthInstanceId); + pref_service_->GetString(::prefs::kCryptAuthInstanceId); if (!previous_instance_id.empty()) { base::UmaHistogramBoolean("CryptAuth.InstanceId.DidInstanceIdChange", previous_instance_id != instance_id); } - pref_service_->SetString(prefs::kCryptAuthInstanceId, instance_id); + pref_service_->SetString(::prefs::kCryptAuthInstanceId, instance_id); GetInstanceId()->GetToken( device_sync:: @@ -300,12 +301,12 @@ void ClientAppMetadataProviderService::OnInstanceIdTokenFetched( DCHECK(!token.empty()); std::string previous_instance_id_token = - pref_service_->GetString(prefs::kCryptAuthInstanceIdToken); + pref_service_->GetString(::prefs::kCryptAuthInstanceIdToken); if (!previous_instance_id_token.empty()) { base::UmaHistogramBoolean("CryptAuth.InstanceId.DidInstanceIdTokenChange", previous_instance_id_token != token); } - pref_service_->SetString(prefs::kCryptAuthInstanceIdToken, token); + pref_service_->SetString(::prefs::kCryptAuthInstanceIdToken, token); cryptauthv2::ClientAppMetadata metadata; diff --git a/chrome/browser/chromeos/extensions/accessibility_features_apitest.cc b/chrome/browser/chromeos/extensions/accessibility_features_apitest.cc index a62b65a0bfecb0..57c0419d809e4c 100644 --- a/chrome/browser/chromeos/extensions/accessibility_features_apitest.cc +++ b/chrome/browser/chromeos/extensions/accessibility_features_apitest.cc @@ -7,7 +7,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/json/json_writer.h" #include "base/values.h" #include "chrome/browser/extensions/extension_apitest.h" diff --git a/chrome/browser/chromeos/extensions/autotest_private/autotest_private_api.cc b/chrome/browser/chromeos/extensions/autotest_private/autotest_private_api.cc index c59f03219d5647..2e989d99ef1ace 100644 --- a/chrome/browser/chromeos/extensions/autotest_private/autotest_private_api.cc +++ b/chrome/browser/chromeos/extensions/autotest_private/autotest_private_api.cc @@ -13,11 +13,11 @@ #include #include "ash/constants/app_types.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/accelerators.h" #include "ash/public/cpp/accessibility_controller.h" #include "ash/public/cpp/ambient/ambient_ui_model.h" #include "ash/public/cpp/app_list/app_list_types.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/autotest_ambient_api.h" #include "ash/public/cpp/autotest_desks_api.h" #include "ash/public/cpp/autotest_private_api_utils.h" diff --git a/chrome/browser/chromeos/extensions/info_private_api.cc b/chrome/browser/chromeos/extensions/info_private_api.cc index d0e4be3257c786..f6fc287ee23cad 100644 --- a/chrome/browser/chromeos/extensions/info_private_api.cc +++ b/chrome/browser/chromeos/extensions/info_private_api.cc @@ -9,8 +9,8 @@ #include #include +#include "ash/constants/ash_pref_names.h" #include "ash/constants/devicetype.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/stylus_utils.h" #include "ash/public/cpp/tablet_mode.h" #include "base/memory/ptr_util.h" diff --git a/chrome/browser/chromeos/extensions/info_private_apitest.cc b/chrome/browser/chromeos/extensions/info_private_apitest.cc index d5d3fe701734bb..d98008c7e6b546 100644 --- a/chrome/browser/chromeos/extensions/info_private_apitest.cc +++ b/chrome/browser/chromeos/extensions/info_private_apitest.cc @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/stylus_utils.h" #include "base/test/scoped_chromeos_version_info.h" #include "base/values.h" diff --git a/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.cc b/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.cc index 4ebd3db8259e06..43f3a136d395fc 100644 --- a/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.cc +++ b/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.cc @@ -8,7 +8,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/bind.h" #include "base/containers/contains.h" #include "chrome/browser/ash/login/quick_unlock/auth_token.h" diff --git a/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api_unittest.cc b/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api_unittest.cc index 4dea2a3a5ad582..c11d8db69a4046 100644 --- a/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api_unittest.cc +++ b/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api_unittest.cc @@ -9,7 +9,7 @@ #include #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/bind.h" #include "base/callback_helpers.h" #include "base/containers/contains.h" @@ -501,12 +501,12 @@ class QuickUnlockPrivateUnitTest bool HasUserValueForPinAutosubmitPref() { const bool has_user_val = test_pref_service_->GetUserPrefValue( - prefs::kPinUnlockAutosubmitEnabled) != nullptr; + ::prefs::kPinUnlockAutosubmitEnabled) != nullptr; return has_user_val; } bool GetAutosubmitPrefVal() { - return test_pref_service_->GetBoolean(prefs::kPinUnlockAutosubmitEnabled); + return test_pref_service_->GetBoolean(::prefs::kPinUnlockAutosubmitEnabled); } int GetExposedPinLength() { @@ -829,39 +829,39 @@ TEST_P(QuickUnlockPrivateUnitTest, CheckCredentialProblemReporting) { // Verify that now if the minimum length is set to 3, PINs of length 3 are // accepted. - pref_service->SetInteger(prefs::kPinUnlockMinimumLength, 3); + pref_service->SetInteger(::prefs::kPinUnlockMinimumLength, 3); CheckPin(PIN_WEAK_WARNING, "111"); // Verify setting a nonzero maximum length that is less than the minimum // length results in the pin only accepting PINs of length minimum length. - pref_service->SetInteger(prefs::kPinUnlockMaximumLength, 2); - pref_service->SetInteger(prefs::kPinUnlockMinimumLength, 4); + pref_service->SetInteger(::prefs::kPinUnlockMaximumLength, 2); + pref_service->SetInteger(::prefs::kPinUnlockMinimumLength, 4); CheckPin(PIN_GOOD, "1112"); CheckPin(PIN_TOO_SHORT, "112"); CheckPin(PIN_TOO_LONG, "11112"); // Verify that now if the maximum length is set to 5, PINs longer than 5 are // considered too long and cannot be used. - pref_service->SetInteger(prefs::kPinUnlockMaximumLength, 5); + pref_service->SetInteger(::prefs::kPinUnlockMaximumLength, 5); CheckPin(PIN_TOO_LONG | PIN_WEAK_WARNING, "111111"); CheckPin(PIN_TOO_LONG | PIN_WEAK_WARNING, "1111111"); // Verify that if both the minimum length and maximum length is set to 4, only // 4 digit PINs can be used. - pref_service->SetInteger(prefs::kPinUnlockMinimumLength, 4); - pref_service->SetInteger(prefs::kPinUnlockMaximumLength, 4); + pref_service->SetInteger(::prefs::kPinUnlockMinimumLength, 4); + pref_service->SetInteger(::prefs::kPinUnlockMaximumLength, 4); CheckPin(PIN_TOO_SHORT, "122"); CheckPin(PIN_TOO_LONG, "12222"); CheckPin(PIN_GOOD, "1222"); // Set the PINs minimum/maximum lengths back to their defaults. - pref_service->SetInteger(prefs::kPinUnlockMinimumLength, 4); - pref_service->SetInteger(prefs::kPinUnlockMaximumLength, 0); + pref_service->SetInteger(::prefs::kPinUnlockMinimumLength, 4); + pref_service->SetInteger(::prefs::kPinUnlockMaximumLength, 0); // Verify that PINs that are weak are flagged as such. See // IsPinDifficultEnough in quick_unlock_private_api.cc for the description of // a weak pin. - pref_service->SetBoolean(prefs::kPinUnlockWeakPinsAllowed, false); + pref_service->SetBoolean(::prefs::kPinUnlockWeakPinsAllowed, false); // Good. CheckPin(PIN_GOOD, "1112"); CheckPin(PIN_GOOD, "7890"); @@ -887,19 +887,19 @@ TEST_P(QuickUnlockPrivateUnitTest, GetCredentialRequirements) { // Verify that trying out PINs under the minimum/maximum lengths will send the // minimum/maximum lengths as additional information for display purposes. - pref_service->SetInteger(prefs::kPinUnlockMinimumLength, 6); - pref_service->SetInteger(prefs::kPinUnlockMaximumLength, 8); + pref_service->SetInteger(::prefs::kPinUnlockMinimumLength, 6); + pref_service->SetInteger(::prefs::kPinUnlockMaximumLength, 8); CheckGetCredentialRequirements(6, 8); // Verify that by setting a maximum length to be nonzero and smaller than the // minimum length, the resulting maxium length will be equal to the minimum // length pref. - pref_service->SetInteger(prefs::kPinUnlockMaximumLength, 4); + pref_service->SetInteger(::prefs::kPinUnlockMaximumLength, 4); CheckGetCredentialRequirements(6, 6); // Verify that the values received from policy are sanitized. - pref_service->SetInteger(prefs::kPinUnlockMinimumLength, -3); - pref_service->SetInteger(prefs::kPinUnlockMaximumLength, -3); + pref_service->SetInteger(::prefs::kPinUnlockMinimumLength, -3); + pref_service->SetInteger(::prefs::kPinUnlockMaximumLength, -3); CheckGetCredentialRequirements(1, 0); } @@ -916,7 +916,7 @@ TEST_P(QuickUnlockPrivateUnitTest, PinAutosubmitLongestPossiblePin) { // When recommended to be disabled, PIN auto submit will not be enabled when // setting a PIN. TEST_P(QuickUnlockPrivateUnitTest, PinAutosubmitRecommendedDisabled) { - test_pref_service_->SetRecommendedPref(prefs::kPinUnlockAutosubmitEnabled, + test_pref_service_->SetRecommendedPref(::prefs::kPinUnlockAutosubmitEnabled, std::make_unique(false)); SetPin("123456"); @@ -928,7 +928,7 @@ TEST_P(QuickUnlockPrivateUnitTest, PinAutosubmitRecommendedDisabled) { // When forced to be disabled, PIN auto submit will not be enabled when // setting a PIN. TEST_P(QuickUnlockPrivateUnitTest, PinAutosubmitForcedDisabled) { - test_pref_service_->SetManagedPref(prefs::kPinUnlockAutosubmitEnabled, + test_pref_service_->SetManagedPref(::prefs::kPinUnlockAutosubmitEnabled, std::make_unique(false)); SetPin("123456"); @@ -1013,7 +1013,7 @@ TEST_P(QuickUnlockPrivateUnitTest, PinAutosubmitCollectLengthOnAuthSuccess) { const bool feature_enabled = IsAutosubmitFeatureEnabled(); // Start with MANDATORY FALSE to prevent auto enabling when setting a PIN. - test_pref_service_->SetManagedPref(prefs::kPinUnlockAutosubmitEnabled, + test_pref_service_->SetManagedPref(::prefs::kPinUnlockAutosubmitEnabled, std::make_unique(false)); SetPin("123456"); EXPECT_TRUE(IsPinSetInBackend()); @@ -1021,7 +1021,7 @@ TEST_P(QuickUnlockPrivateUnitTest, PinAutosubmitCollectLengthOnAuthSuccess) { EXPECT_EQ(GetExposedPinLength(), 0); // Autosubmit disabled, length unknown. Change to MANDATORY TRUE - test_pref_service_->SetManagedPref(prefs::kPinUnlockAutosubmitEnabled, + test_pref_service_->SetManagedPref(::prefs::kPinUnlockAutosubmitEnabled, std::make_unique(true)); EXPECT_TRUE(GetAutosubmitPrefVal()); EXPECT_EQ(GetExposedPinLength(), 0); @@ -1046,7 +1046,7 @@ TEST_P(QuickUnlockPrivateUnitTest, PinAutosubmitClearLengthOnUiUpdate) { EXPECT_EQ(GetExposedPinLength(), feature_enabled ? 6 : 0); // Switch to MANDATORY FALSE. - test_pref_service_->SetManagedPref(prefs::kPinUnlockAutosubmitEnabled, + test_pref_service_->SetManagedPref(::prefs::kPinUnlockAutosubmitEnabled, std::make_unique(false)); // Called during user pod update. @@ -1118,7 +1118,7 @@ TEST_P(QuickUnlockPrivateUnitTest, PinAutosubmitBackfillEnterprise) { return; // Enterprise users have auto submit disabled by default. - test_pref_service_->SetManagedPref(prefs::kPinUnlockAutosubmitEnabled, + test_pref_service_->SetManagedPref(::prefs::kPinUnlockAutosubmitEnabled, std::make_unique(false)); SetPinForBackfillTests("123456"); diff --git a/chrome/browser/chromeos/input_method/assistive_window_controller_unittest.cc b/chrome/browser/chromeos/input_method/assistive_window_controller_unittest.cc index 98f2c9e025e64a..f70e65005d1e14 100644 --- a/chrome/browser/chromeos/input_method/assistive_window_controller_unittest.cc +++ b/chrome/browser/chromeos/input_method/assistive_window_controller_unittest.cc @@ -4,7 +4,7 @@ #include "chrome/browser/chromeos/input_method/assistive_window_controller.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/test/task_environment.h" #include "chrome/browser/chromeos/input_method/assistive_window_controller_delegate.h" #include "chrome/browser/chromeos/input_method/ui/suggestion_details.h" diff --git a/chrome/browser/chromeos/input_method/personal_info_suggester_unittest.cc b/chrome/browser/chromeos/input_method/personal_info_suggester_unittest.cc index 45613052b9264e..a604409a2c08e5 100644 --- a/chrome/browser/chromeos/input_method/personal_info_suggester_unittest.cc +++ b/chrome/browser/chromeos/input_method/personal_info_suggester_unittest.cc @@ -6,7 +6,6 @@ #include "ash/constants/ash_features.h" #include "ash/constants/ash_pref_names.h" -#include "ash/public/cpp/ash_pref_names.h" #include "base/guid.h" #include "base/strings/utf_string_conversions.h" #include "base/test/metrics/histogram_tester.h" diff --git a/chrome/browser/chromeos/input_method/tts_handler.cc b/chrome/browser/chromeos/input_method/tts_handler.cc index 698493b251a15d..1081dbd92100da 100644 --- a/chrome/browser/chromeos/input_method/tts_handler.cc +++ b/chrome/browser/chromeos/input_method/tts_handler.cc @@ -4,7 +4,7 @@ #include "chrome/browser/chromeos/input_method/tts_handler.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "chrome/browser/profiles/profile_manager.h" #include "components/prefs/pref_service.h" diff --git a/chrome/browser/chromeos/policy/login/device_login_screen_policy_browsertest.cc b/chrome/browser/chromeos/policy/login/device_login_screen_policy_browsertest.cc index baa4e809d6ff44..bea567aa1a2d0b 100644 --- a/chrome/browser/chromeos/policy/login/device_login_screen_policy_browsertest.cc +++ b/chrome/browser/chromeos/policy/login/device_login_screen_policy_browsertest.cc @@ -4,8 +4,8 @@ #include +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/login_screen_test_api.h" #include "base/bind.h" #include "base/callback_helpers.h" diff --git a/chrome/browser/chromeos/policy/login/login_screen_accessibility_policy_browsertest.cc b/chrome/browser/chromeos/policy/login/login_screen_accessibility_policy_browsertest.cc index 1e230006a5892d..80979e8141a73d 100644 --- a/chrome/browser/chromeos/policy/login/login_screen_accessibility_policy_browsertest.cc +++ b/chrome/browser/chromeos/policy/login/login_screen_accessibility_policy_browsertest.cc @@ -4,9 +4,9 @@ #include +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" #include "ash/public/cpp/accessibility_controller.h" -#include "ash/public/cpp/ash_pref_names.h" #include "base/bind.h" #include "base/callback_helpers.h" #include "base/command_line.h" diff --git a/chrome/browser/chromeos/policy/login/login_screen_default_policy_browsertest.cc b/chrome/browser/chromeos/policy/login/login_screen_default_policy_browsertest.cc index e728718ecd4c88..30130b9ec34f37 100644 --- a/chrome/browser/chromeos/policy/login/login_screen_default_policy_browsertest.cc +++ b/chrome/browser/chromeos/policy/login/login_screen_default_policy_browsertest.cc @@ -4,8 +4,8 @@ #include +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "base/bind.h" #include "base/callback_helpers.h" #include "base/command_line.h" diff --git a/chrome/browser/chromeos/preferences.cc b/chrome/browser/chromeos/preferences.cc index c7e3170f293e5b..506c6d7fc63680 100644 --- a/chrome/browser/chromeos/preferences.cc +++ b/chrome/browser/chromeos/preferences.cc @@ -13,7 +13,6 @@ #include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" #include "ash/public/ash_interfaces.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/ash_prefs.h" #include "ash/public/mojom/cros_display_config.mojom.h" #include "base/bind.h" diff --git a/chrome/browser/chromeos/preferences_chromeos_browsertest.cc b/chrome/browser/chromeos/preferences_chromeos_browsertest.cc index d824afbd7928b9..2c7d03666aed9d 100644 --- a/chrome/browser/chromeos/preferences_chromeos_browsertest.cc +++ b/chrome/browser/chromeos/preferences_chromeos_browsertest.cc @@ -6,7 +6,7 @@ #include #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/command_line.h" #include "base/test/scoped_feature_list.h" #include "chrome/browser/ash/login/login_manager_test.h" @@ -58,66 +58,66 @@ class PreferencesTest : public LoginManagerTest { void SetPrefs(PrefService* prefs, bool variant) { prefs->SetBoolean(ash::prefs::kMouseReverseScroll, variant); prefs->SetBoolean(ash::prefs::kNaturalScroll, variant); - prefs->SetBoolean(prefs::kTapToClickEnabled, variant); - prefs->SetBoolean(prefs::kPrimaryMouseButtonRight, !variant); - prefs->SetBoolean(prefs::kPrimaryPointingStickButtonRight, !variant); - prefs->SetBoolean(prefs::kMouseAcceleration, variant); - prefs->SetBoolean(prefs::kMouseScrollAcceleration, variant); - prefs->SetBoolean(prefs::kPointingStickAcceleration, variant); - prefs->SetBoolean(prefs::kTouchpadAcceleration, variant); - prefs->SetBoolean(prefs::kTouchpadScrollAcceleration, variant); - prefs->SetBoolean(prefs::kEnableTouchpadThreeFingerClick, !variant); - prefs->SetInteger(prefs::kMouseSensitivity, !variant); - prefs->SetInteger(prefs::kMouseScrollSensitivity, variant ? 1 : 4); - prefs->SetInteger(prefs::kPointingStickSensitivity, !variant); - prefs->SetInteger(prefs::kTouchpadSensitivity, variant); - prefs->SetInteger(prefs::kTouchpadScrollSensitivity, variant ? 1 : 4); + prefs->SetBoolean(::prefs::kTapToClickEnabled, variant); + prefs->SetBoolean(::prefs::kPrimaryMouseButtonRight, !variant); + prefs->SetBoolean(::prefs::kPrimaryPointingStickButtonRight, !variant); + prefs->SetBoolean(::prefs::kMouseAcceleration, variant); + prefs->SetBoolean(::prefs::kMouseScrollAcceleration, variant); + prefs->SetBoolean(::prefs::kPointingStickAcceleration, variant); + prefs->SetBoolean(::prefs::kTouchpadAcceleration, variant); + prefs->SetBoolean(::prefs::kTouchpadScrollAcceleration, variant); + prefs->SetBoolean(::prefs::kEnableTouchpadThreeFingerClick, !variant); + prefs->SetInteger(::prefs::kMouseSensitivity, !variant); + prefs->SetInteger(::prefs::kMouseScrollSensitivity, variant ? 1 : 4); + prefs->SetInteger(::prefs::kPointingStickSensitivity, !variant); + prefs->SetInteger(::prefs::kTouchpadSensitivity, variant); + prefs->SetInteger(::prefs::kTouchpadScrollSensitivity, variant ? 1 : 4); prefs->SetBoolean(ash::prefs::kXkbAutoRepeatEnabled, variant); prefs->SetInteger(ash::prefs::kXkbAutoRepeatDelay, variant ? 100 : 500); prefs->SetInteger(ash::prefs::kXkbAutoRepeatInterval, variant ? 1 : 4); - prefs->SetString(prefs::kLanguagePreloadEngines, - variant ? "xkb:us::eng,xkb:us:dvorak:eng" - : "xkb:us::eng,xkb:ru::rus"); + prefs->SetString( + ::prefs::kLanguagePreloadEngines, + variant ? "xkb:us::eng,xkb:us:dvorak:eng" : "xkb:us::eng,xkb:ru::rus"); } void CheckSettingsCorrespondToPrefs(PrefService* prefs) { - EXPECT_EQ(prefs->GetBoolean(prefs::kTapToClickEnabled), + EXPECT_EQ(prefs->GetBoolean(::prefs::kTapToClickEnabled), input_settings_->current_touchpad_settings().GetTapToClick()); - EXPECT_EQ(prefs->GetBoolean(prefs::kPrimaryMouseButtonRight), - input_settings_->current_mouse_settings() - .GetPrimaryButtonRight()); - EXPECT_EQ(prefs->GetBoolean(prefs::kPrimaryPointingStickButtonRight), + EXPECT_EQ( + prefs->GetBoolean(::prefs::kPrimaryMouseButtonRight), + input_settings_->current_mouse_settings().GetPrimaryButtonRight()); + EXPECT_EQ(prefs->GetBoolean(::prefs::kPrimaryPointingStickButtonRight), input_settings_->current_pointing_stick_settings() .GetPrimaryButtonRight()); EXPECT_EQ(prefs->GetBoolean(ash::prefs::kMouseReverseScroll), input_settings_->current_mouse_settings().GetReverseScroll()); - EXPECT_EQ(prefs->GetBoolean(prefs::kMouseAcceleration), + EXPECT_EQ(prefs->GetBoolean(::prefs::kMouseAcceleration), input_settings_->current_mouse_settings().GetAcceleration()); EXPECT_EQ( - prefs->GetBoolean(prefs::kMouseScrollAcceleration), + prefs->GetBoolean(::prefs::kMouseScrollAcceleration), input_settings_->current_mouse_settings().GetScrollAcceleration()); EXPECT_EQ( - prefs->GetBoolean(prefs::kPointingStickAcceleration), + prefs->GetBoolean(::prefs::kPointingStickAcceleration), input_settings_->current_pointing_stick_settings().GetAcceleration()); - EXPECT_EQ(prefs->GetBoolean(prefs::kTouchpadAcceleration), + EXPECT_EQ(prefs->GetBoolean(::prefs::kTouchpadAcceleration), input_settings_->current_touchpad_settings().GetAcceleration()); EXPECT_EQ( - prefs->GetBoolean(prefs::kTouchpadScrollAcceleration), + prefs->GetBoolean(::prefs::kTouchpadScrollAcceleration), input_settings_->current_touchpad_settings().GetScrollAcceleration()); - EXPECT_EQ(prefs->GetBoolean(prefs::kEnableTouchpadThreeFingerClick), - input_settings_->current_touchpad_settings() - .GetThreeFingerClick()); - EXPECT_EQ(prefs->GetInteger(prefs::kMouseSensitivity), + EXPECT_EQ( + prefs->GetBoolean(::prefs::kEnableTouchpadThreeFingerClick), + input_settings_->current_touchpad_settings().GetThreeFingerClick()); + EXPECT_EQ(prefs->GetInteger(::prefs::kMouseSensitivity), input_settings_->current_mouse_settings().GetSensitivity()); - EXPECT_EQ(prefs->GetInteger(prefs::kMouseScrollSensitivity), + EXPECT_EQ(prefs->GetInteger(::prefs::kMouseScrollSensitivity), input_settings_->current_mouse_settings().GetScrollSensitivity()); EXPECT_EQ( - prefs->GetInteger(prefs::kPointingStickSensitivity), + prefs->GetInteger(::prefs::kPointingStickSensitivity), input_settings_->current_pointing_stick_settings().GetSensitivity()); - EXPECT_EQ(prefs->GetInteger(prefs::kTouchpadSensitivity), + EXPECT_EQ(prefs->GetInteger(::prefs::kTouchpadSensitivity), input_settings_->current_touchpad_settings().GetSensitivity()); EXPECT_EQ( - prefs->GetInteger(prefs::kTouchpadScrollSensitivity), + prefs->GetInteger(::prefs::kTouchpadScrollSensitivity), input_settings_->current_touchpad_settings().GetScrollSensitivity()); EXPECT_EQ(prefs->GetBoolean(ash::prefs::kXkbAutoRepeatEnabled), keyboard_->auto_repeat_is_enabled_); @@ -126,7 +126,7 @@ class PreferencesTest : public LoginManagerTest { (int)rate.initial_delay_in_ms); EXPECT_EQ(prefs->GetInteger(ash::prefs::kXkbAutoRepeatInterval), (int)rate.repeat_interval_in_ms); - EXPECT_EQ(prefs->GetString(prefs::kLanguageCurrentInputMethod), + EXPECT_EQ(prefs->GetString(::prefs::kLanguageCurrentInputMethod), input_method::InputMethodManager::Get() ->GetActiveIMEState() ->GetCurrentInputMethod() @@ -135,13 +135,13 @@ class PreferencesTest : public LoginManagerTest { void CheckLocalStateCorrespondsToPrefs(PrefService* prefs) { PrefService* local_state = g_browser_process->local_state(); - EXPECT_EQ(local_state->GetBoolean(prefs::kOwnerTapToClickEnabled), - prefs->GetBoolean(prefs::kTapToClickEnabled)); - EXPECT_EQ(local_state->GetBoolean(prefs::kOwnerPrimaryMouseButtonRight), - prefs->GetBoolean(prefs::kPrimaryMouseButtonRight)); + EXPECT_EQ(local_state->GetBoolean(::prefs::kOwnerTapToClickEnabled), + prefs->GetBoolean(::prefs::kTapToClickEnabled)); + EXPECT_EQ(local_state->GetBoolean(::prefs::kOwnerPrimaryMouseButtonRight), + prefs->GetBoolean(::prefs::kPrimaryMouseButtonRight)); EXPECT_EQ( - local_state->GetBoolean(prefs::kOwnerPrimaryPointingStickButtonRight), - prefs->GetBoolean(prefs::kPrimaryPointingStickButtonRight)); + local_state->GetBoolean(::prefs::kOwnerPrimaryPointingStickButtonRight), + prefs->GetBoolean(::prefs::kPrimaryPointingStickButtonRight)); } LoginManagerMixin login_mixin_{&mixin_host_}; @@ -213,11 +213,11 @@ IN_PROC_BROWSER_TEST_F(PreferencesTest, MultiProfiles) { // state prefs and vice versa. EXPECT_EQ(user_manager->GetOwnerAccountId(), users[0].account_id); CheckLocalStateCorrespondsToPrefs(prefs1); - prefs2->SetBoolean(prefs::kTapToClickEnabled, - !prefs1->GetBoolean(prefs::kTapToClickEnabled)); + prefs2->SetBoolean(::prefs::kTapToClickEnabled, + !prefs1->GetBoolean(::prefs::kTapToClickEnabled)); CheckLocalStateCorrespondsToPrefs(prefs1); - prefs1->SetBoolean(prefs::kTapToClickEnabled, - !prefs1->GetBoolean(prefs::kTapToClickEnabled)); + prefs1->SetBoolean(::prefs::kTapToClickEnabled, + !prefs1->GetBoolean(::prefs::kTapToClickEnabled)); CheckLocalStateCorrespondsToPrefs(prefs1); // Switch user back. diff --git a/chrome/browser/extensions/api/preference/preference_api.cc b/chrome/browser/extensions/api/preference/preference_api.cc index a5d62888282abb..bdf0f43e3e79ee 100644 --- a/chrome/browser/extensions/api/preference/preference_api.cc +++ b/chrome/browser/extensions/api/preference/preference_api.cc @@ -52,7 +52,7 @@ #include "media/media_buildflags.h" #if BUILDFLAG(IS_CHROMEOS_ASH) -#include "ash/public/cpp/ash_pref_names.h" // nogncheck +#include "ash/constants/ash_pref_names.h" // nogncheck #endif using extensions::mojom::APIPermissionID; diff --git a/chrome/browser/extensions/api/settings_private/prefs_util.cc b/chrome/browser/extensions/api/settings_private/prefs_util.cc index caaa7229a0c4d6..eb363073dfd1e5 100644 --- a/chrome/browser/extensions/api/settings_private/prefs_util.cc +++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc @@ -59,8 +59,8 @@ #if BUILDFLAG(IS_CHROMEOS_ASH) #include "ash/constants/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" // nogncheck #include "ash/public/cpp/ambient/ambient_prefs.h" -#include "ash/public/cpp/ash_pref_names.h" // nogncheck #include "chrome/browser/ash/crostini/crostini_pref_names.h" #include "chrome/browser/ash/guest_os/guest_os_pref_names.h" #include "chrome/browser/ash/ownership/owner_settings_service_ash.h" diff --git a/chrome/browser/extensions/api/terminal/terminal_private_api.cc b/chrome/browser/extensions/api/terminal/terminal_private_api.cc index 743b9b9f9f2bde..5f54c44f57b9b6 100644 --- a/chrome/browser/extensions/api/terminal/terminal_private_api.cc +++ b/chrome/browser/extensions/api/terminal/terminal_private_api.cc @@ -10,7 +10,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/bind.h" #include "base/command_line.h" #include "base/containers/flat_set.h" diff --git a/chrome/browser/extensions/component_loader.cc b/chrome/browser/extensions/component_loader.cc index 6fb7a0f6b59faf..fec56e44213964 100644 --- a/chrome/browser/extensions/component_loader.cc +++ b/chrome/browser/extensions/component_loader.cc @@ -6,7 +6,7 @@ #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/bind.h" #include "base/callback_helpers.h" #include "base/command_line.h" diff --git a/chrome/browser/policy/configuration_policy_handler_list_factory.cc b/chrome/browser/policy/configuration_policy_handler_list_factory.cc index 44cee0b424ba64..f928ab0a62aa24 100644 --- a/chrome/browser/policy/configuration_policy_handler_list_factory.cc +++ b/chrome/browser/policy/configuration_policy_handler_list_factory.cc @@ -125,7 +125,6 @@ #if BUILDFLAG(IS_CHROMEOS_ASH) #include "ash/constants/ash_pref_names.h" -#include "ash/public/cpp/ash_pref_names.h" #include "chrome/browser/ash/accessibility/magnifier_type.h" #include "chrome/browser/ash/borealis/borealis_prefs.h" #include "chrome/browser/ash/crostini/crostini_pref_names.h" diff --git a/chrome/browser/policy/test/accessibility_policy_browsertest.cc b/chrome/browser/policy/test/accessibility_policy_browsertest.cc index 0308510d59908b..e6c2261c9eb8ad 100644 --- a/chrome/browser/policy/test/accessibility_policy_browsertest.cc +++ b/chrome/browser/policy/test/accessibility_policy_browsertest.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "build/build_config.h" #include "chrome/browser/ash/accessibility/accessibility_manager.h" #include "chrome/browser/ash/accessibility/magnification_manager.h" diff --git a/chrome/browser/policy/test/policy_browsertest.cc b/chrome/browser/policy/test/policy_browsertest.cc index 9941d2a5121957..5d1df99aa92250 100644 --- a/chrome/browser/policy/test/policy_browsertest.cc +++ b/chrome/browser/policy/test/policy_browsertest.cc @@ -151,7 +151,7 @@ #include "url/origin.h" #if BUILDFLAG(IS_CHROMEOS_ASH) -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "chrome/browser/ash/login/test/js_checker.h" #include "chrome/browser/ash/system/timezone_resolver_manager.h" #include "chrome/browser/chromeos/note_taking_helper.h" diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc index 7686eabe67e988..5795ded7022199 100644 --- a/chrome/browser/prefs/browser_prefs.cc +++ b/chrome/browser/prefs/browser_prefs.cc @@ -261,7 +261,7 @@ #if BUILDFLAG(IS_CHROMEOS_ASH) #include "ash/components/audio/audio_devices_pref_handler_impl.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/ash_prefs.h" #include "chrome/browser/apps/app_service/app_platform_metrics_service.h" #include "chrome/browser/apps/app_service/webapk/webapk_prefs.h" diff --git a/chrome/browser/prefs/pref_service_incognito_allowlist.cc b/chrome/browser/prefs/pref_service_incognito_allowlist.cc index ebe5b162571224..a559ce1af25081 100644 --- a/chrome/browser/prefs/pref_service_incognito_allowlist.cc +++ b/chrome/browser/prefs/pref_service_incognito_allowlist.cc @@ -21,7 +21,7 @@ #endif // !defined(OS_ANDROID) #if BUILDFLAG(IS_CHROMEOS_ASH) -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #endif // BUILDFLAG(IS_CHROMEOS_ASH) namespace { diff --git a/chrome/browser/resources/chromeos/accessibility/accessibility_common/dictation/dictation_test.js b/chrome/browser/resources/chromeos/accessibility/accessibility_common/dictation/dictation_test.js index b6120f39b11801..e9de15f4c7d303 100644 --- a/chrome/browser/resources/chromeos/accessibility/accessibility_common/dictation/dictation_test.js +++ b/chrome/browser/resources/chromeos/accessibility/accessibility_common/dictation/dictation_test.js @@ -42,7 +42,6 @@ import('/accessibility_common/accessibility_common_loader.js').then(reinit); GEN(` #include "ash/accessibility/accessibility_delegate.h" #include "ash/shell.h" -#include "ash/public/cpp/ash_pref_names.h" #include "base/bind.h" #include "base/callback.h" #include "base/command_line.h" diff --git a/chrome/browser/sync/test/integration/single_client_os_preferences_sync_test.cc b/chrome/browser/sync/test/integration/single_client_os_preferences_sync_test.cc index 439648445d6b52..507e41d0c53e13 100644 --- a/chrome/browser/sync/test/integration/single_client_os_preferences_sync_test.cc +++ b/chrome/browser/sync/test/integration/single_client_os_preferences_sync_test.cc @@ -3,7 +3,7 @@ // found in the LICENSE file. #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/shelf_prefs.h" #include "chrome/browser/sync/test/integration/os_sync_test.h" #include "chrome/browser/sync/test/integration/preferences_helper.h" diff --git a/chrome/browser/sync/test/integration/two_client_os_preferences_sync_test.cc b/chrome/browser/sync/test/integration/two_client_os_preferences_sync_test.cc index b2387d4fd73ed3..615ad31aa8cb43 100644 --- a/chrome/browser/sync/test/integration/two_client_os_preferences_sync_test.cc +++ b/chrome/browser/sync/test/integration/two_client_os_preferences_sync_test.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/shelf_prefs.h" #include "base/test/metrics/histogram_tester.h" #include "chrome/browser/sync/test/integration/os_sync_test.h" diff --git a/chrome/browser/ui/ash/assistant/assistant_test_mixin.cc b/chrome/browser/ui/ash/assistant/assistant_test_mixin.cc index 0961857f48b027..8a719b4b3955e6 100644 --- a/chrome/browser/ui/ash/assistant/assistant_test_mixin.cc +++ b/chrome/browser/ui/ash/assistant/assistant_test_mixin.cc @@ -12,7 +12,6 @@ #include "ash/assistant/ui/assistant_ui_constants.h" #include "ash/assistant/ui/main_stage/assistant_ui_element_view.h" #include "ash/constants/ash_switches.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/assistant/assistant_state.h" #include "ash/public/cpp/test/assistant_test_api.h" #include "base/auto_reset.h" diff --git a/chrome/browser/ui/ash/assistant/device_actions.cc b/chrome/browser/ui/ash/assistant/device_actions.cc index ca21860feb9a58..a8dd9550da6088 100644 --- a/chrome/browser/ui/ash/assistant/device_actions.cc +++ b/chrome/browser/ui/ash/assistant/device_actions.cc @@ -8,7 +8,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/bind.h" #include "base/strings/stringprintf.h" #include "base/strings/utf_string_conversions.h" diff --git a/chrome/browser/ui/ash/chrome_shelf_prefs.cc b/chrome/browser/ui/ash/chrome_shelf_prefs.cc index 64de612b52a009..871f60de26a75d 100644 --- a/chrome/browser/ui/ash/chrome_shelf_prefs.cc +++ b/chrome/browser/ui/ash/chrome_shelf_prefs.cc @@ -10,9 +10,9 @@ #include #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/constants/ash_switches.h" #include "ash/public/cpp/app_list/internal_app_id_constants.h" -#include "ash/public/cpp/ash_pref_names.h" #include "base/values.h" #include "chrome/browser/ash/crosapi/browser_util.h" #include "chrome/browser/ash/login/demo_mode/demo_session.h" diff --git a/chrome/browser/ui/ash/session_controller_client_impl.cc b/chrome/browser/ui/ash/session_controller_client_impl.cc index 2609e64cfe0224..33c1f803555519 100644 --- a/chrome/browser/ui/ash/session_controller_client_impl.cc +++ b/chrome/browser/ui/ash/session_controller_client_impl.cc @@ -8,7 +8,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/session/session_controller.h" #include "ash/public/cpp/session/session_types.h" #include "base/bind.h" diff --git a/chrome/browser/ui/ash/session_controller_client_impl_unittest.cc b/chrome/browser/ui/ash/session_controller_client_impl_unittest.cc index 9ceb59e1bd54e3..b7eb8f8a468d66 100644 --- a/chrome/browser/ui/ash/session_controller_client_impl_unittest.cc +++ b/chrome/browser/ui/ash/session_controller_client_impl_unittest.cc @@ -8,7 +8,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/bind.h" #include "base/macros.h" #include "base/memory/ptr_util.h" diff --git a/chrome/browser/ui/ash/shelf/chrome_shelf_controller.cc b/chrome/browser/ui/ash/shelf/chrome_shelf_controller.cc index 099193917addb0..6068f38ee5ec16 100644 --- a/chrome/browser/ui/ash/shelf/chrome_shelf_controller.cc +++ b/chrome/browser/ui/ash/shelf/chrome_shelf_controller.cc @@ -11,7 +11,7 @@ #include "ash/constants/app_types.h" #include "ash/constants/ash_features.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/multi_user_window_manager.h" #include "ash/public/cpp/shelf_item.h" #include "ash/public/cpp/shelf_model.h" diff --git a/chrome/browser/ui/prefs/pref_watcher.cc b/chrome/browser/ui/prefs/pref_watcher.cc index bd42e9fe7f5727..59b755e2f41e6c 100644 --- a/chrome/browser/ui/prefs/pref_watcher.cc +++ b/chrome/browser/ui/prefs/pref_watcher.cc @@ -19,7 +19,7 @@ #include "third_party/blink/public/common/renderer_preferences/renderer_preferences.h" #if BUILDFLAG(IS_CHROMEOS_ASH) -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #endif namespace { diff --git a/chrome/browser/ui/webui/chromeos/login/marketing_opt_in_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/marketing_opt_in_screen_handler.cc index 2e7a00d5a2b4cb..c3ee366c0d0395 100644 --- a/chrome/browser/ui/webui/chromeos/login/marketing_opt_in_screen_handler.cc +++ b/chrome/browser/ui/webui/chromeos/login/marketing_opt_in_screen_handler.cc @@ -4,7 +4,7 @@ #include "chrome/browser/ui/webui/chromeos/login/marketing_opt_in_screen_handler.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/command_line.h" #include "base/metrics/histogram_functions.h" #include "chrome/browser/ash/login/screens/marketing_opt_in_screen.h" diff --git a/chrome/browser/ui/webui/settings/chromeos/accessibility_section.cc b/chrome/browser/ui/webui/settings/chromeos/accessibility_section.cc index f0ad40f7a5c8c6..d9a8a8389dc767 100644 --- a/chrome/browser/ui/webui/settings/chromeos/accessibility_section.cc +++ b/chrome/browser/ui/webui/settings/chromeos/accessibility_section.cc @@ -10,8 +10,8 @@ #include #include "ash/constants/ash_features.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/accessibility_controller_enums.h" -#include "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/tablet_mode.h" #include "base/command_line.h" #include "base/feature_list.h" diff --git a/chrome/browser/ui/webui/settings/chromeos/device_power_handler.cc b/chrome/browser/ui/webui/settings/chromeos/device_power_handler.cc index 945609de57dc2a..7997009d667dcb 100644 --- a/chrome/browser/ui/webui/settings/chromeos/device_power_handler.cc +++ b/chrome/browser/ui/webui/settings/chromeos/device_power_handler.cc @@ -7,7 +7,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/power_utils.h" #include "base/bind.h" #include "base/callback_helpers.h" diff --git a/chrome/browser/ui/webui/settings/chromeos/device_power_handler_browsertest.cc b/chrome/browser/ui/webui/settings/chromeos/device_power_handler_browsertest.cc index 4d54e411208fdb..cd13651bc18b2a 100644 --- a/chrome/browser/ui/webui/settings/chromeos/device_power_handler_browsertest.cc +++ b/chrome/browser/ui/webui/settings/chromeos/device_power_handler_browsertest.cc @@ -6,7 +6,7 @@ #include #include -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/json/json_writer.h" #include "base/macros.h" #include "base/run_loop.h" diff --git a/chrome/browser/ui/webui/settings/chromeos/peripheral_data_access_handler.cc b/chrome/browser/ui/webui/settings/chromeos/peripheral_data_access_handler.cc index e47568344b5c15..05de44a349d228 100644 --- a/chrome/browser/ui/webui/settings/chromeos/peripheral_data_access_handler.cc +++ b/chrome/browser/ui/webui/settings/chromeos/peripheral_data_access_handler.cc @@ -8,7 +8,7 @@ #include #include "ash/components/pcie_peripheral/pcie_peripheral_manager.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "base/bind.h" #include "base/callback_helpers.h" #include "base/files/file_path.h" diff --git a/chrome/browser/ui/webui/settings/chromeos/switch_access_handler.cc b/chrome/browser/ui/webui/settings/chromeos/switch_access_handler.cc index bec48aa4b7e506..a4c68058b06261 100644 --- a/chrome/browser/ui/webui/settings/chromeos/switch_access_handler.cc +++ b/chrome/browser/ui/webui/settings/chromeos/switch_access_handler.cc @@ -7,8 +7,8 @@ #include #include "ash/constants/ash_constants.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/accessibility_controller.h" -#include "ash/public/cpp/ash_pref_names.h" #include "base/bind.h" #include "base/no_destructor.h" #include "base/values.h" diff --git a/components/exo/keyboard_unittest.cc b/components/exo/keyboard_unittest.cc index a566be22a1c59e..155d78985b95f1 100644 --- a/components/exo/keyboard_unittest.cc +++ b/components/exo/keyboard_unittest.cc @@ -6,7 +6,7 @@ #include "ash/accessibility/accessibility_controller_impl.h" #include "ash/constants/app_types.h" -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #include "ash/public/cpp/external_arc/overlay/arc_overlay_manager.h" #include "ash/shell.h" #include "ash/test/ash_test_helper.h" diff --git a/components/soda/BUILD.gn b/components/soda/BUILD.gn index 0cfbe2655e9fb4..92d152c2453d37 100644 --- a/components/soda/BUILD.gn +++ b/components/soda/BUILD.gn @@ -27,7 +27,7 @@ component("soda") { ] deps += [ - "//ash/public/cpp", + "//ash/constants", "//chromeos/dbus/dlcservice", "//ui/base", ] diff --git a/components/soda/DEPS b/components/soda/DEPS index 2a23cda2f86f3d..120f4b35c85542 100644 --- a/components/soda/DEPS +++ b/components/soda/DEPS @@ -1,5 +1,5 @@ include_rules = [ - "+ash/public/cpp", + "+ash/constants", "+chromeos/dbus/dlcservice/dlcservice_client.h", "+components/component_updater/component_updater_paths.h", "+components/crx_file", diff --git a/components/soda/soda_installer.cc b/components/soda/soda_installer.cc index bc36f864958328..6252272c92c8f3 100644 --- a/components/soda/soda_installer.cc +++ b/components/soda/soda_installer.cc @@ -5,7 +5,7 @@ #include "components/soda/soda_installer.h" #if BUILDFLAG(IS_CHROMEOS_ASH) -#include "ash/public/cpp/ash_pref_names.h" +#include "ash/constants/ash_pref_names.h" #endif // BUILDFLAG(IS_CHROMEOS_ASH) #include "base/containers/contains.h" #include "base/feature_list.h"