Avi Drissman | 3a215d1e | 2022-09-07 19:43:09 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "ash/public/cpp/ash_prefs.h" |
| 6 | |
Mike Wasserman | d13e95a | 2019-06-28 23:29:48 | [diff] [blame] | 7 | #include "ash/accessibility/accessibility_controller_impl.h" |
Josiah K | 466b0dc3 | 2021-06-16 23:39:05 | [diff] [blame] | 8 | #include "ash/accessibility/magnifier/docked_magnifier_controller.h" |
wutao | 3a150d71b | 2020-02-19 22:11:26 | [diff] [blame] | 9 | #include "ash/ambient/ambient_controller.h" |
Emmanuel Arias Soto | 4de5f2b7 | 2023-04-26 15:58:24 | [diff] [blame^] | 10 | #include "ash/ambient/managed/screensaver_images_policy_handler.h" |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 11 | #include "ash/app_list/app_list_controller_impl.h" |
David Black | ec4cbcd | 2020-04-15 20:35:25 | [diff] [blame] | 12 | #include "ash/assistant/assistant_controller_impl.h" |
Ramya Gopalan | 96b2aa2 | 2022-08-23 17:30:00 | [diff] [blame] | 13 | #include "ash/calendar/calendar_controller.h" |
Ahmed Fakhry | 766bac6 | 2021-09-24 02:36:19 | [diff] [blame] | 14 | #include "ash/capture_mode/capture_mode_controller.h" |
Yulun Wu | 78c26ab | 2020-08-26 06:37:36 | [diff] [blame] | 15 | #include "ash/clipboard/clipboard_nudge_controller.h" |
Gordon Seto | c7b5631e | 2021-11-12 22:48:28 | [diff] [blame] | 16 | #include "ash/constants/ash_features.h" |
Henrique Ferreiro | 3777026 | 2021-02-06 01:20:53 | [diff] [blame] | 17 | #include "ash/constants/ash_pref_names.h" |
Jason Thai | aa31bb1 | 2022-06-07 21:50:26 | [diff] [blame] | 18 | #include "ash/controls/contextual_tooltip.h" |
Xiyuan Xia | 14619a2 | 2019-05-14 20:20:44 | [diff] [blame] | 19 | #include "ash/detachable_base/detachable_base_handler.h" |
| 20 | #include "ash/display/display_prefs.h" |
Gil Dekel | 6977703 | 2020-02-07 18:41:53 | [diff] [blame] | 21 | #include "ash/display/privacy_screen_controller.h" |
James Cook | f3789aac | 2022-09-06 18:10:54 | [diff] [blame] | 22 | #include "ash/glanceables/glanceables_util.h" |
Chloe Pelling | 186ed3e | 2020-04-27 01:08:34 | [diff] [blame] | 23 | #include "ash/keyboard/keyboard_controller_impl.h" |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 24 | #include "ash/login/login_screen_controller.h" |
Aya ElAttar | d2b3c8a | 2020-06-22 23:02:13 | [diff] [blame] | 25 | #include "ash/login/ui/login_expanded_public_account_view.h" |
Mia Bergeron | 12fd2f18 | 2019-06-11 23:04:46 | [diff] [blame] | 26 | #include "ash/media/media_controller_impl.h" |
Andrew Xu | cfed58c | 2022-04-13 22:25:51 | [diff] [blame] | 27 | #include "ash/metrics/feature_discovery_duration_reporter_impl.h" |
Courtney Wong | fa3b7190 | 2022-05-12 22:21:34 | [diff] [blame] | 28 | #include "ash/projector/projector_controller_impl.h" |
Ahmed Mehfooz | e6167f5 | 2020-10-22 20:01:33 | [diff] [blame] | 29 | #include "ash/public/cpp/holding_space/holding_space_prefs.h" |
Daniel Classon | e31b84fd2 | 2021-10-05 02:41:57 | [diff] [blame] | 30 | #include "ash/quick_pair/keyed_service/quick_pair_mediator.h" |
Xiaodan Zhu | d5b8187 | 2020-11-12 18:15:29 | [diff] [blame] | 31 | #include "ash/session/fullscreen_controller.h" |
David Black | 57245f3 | 2023-03-07 19:36:08 | [diff] [blame] | 32 | #include "ash/session/session_controller_impl.h" |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 33 | #include "ash/shelf/shelf_controller.h" |
Erica Lee | 50bbcae | 2023-01-14 01:26:56 | [diff] [blame] | 34 | #include "ash/style/color_palette_controller.h" |
minch | c568dd7 | 2022-06-24 17:41:43 | [diff] [blame] | 35 | #include "ash/style/dark_light_mode_controller_impl.h" |
Pi-Hsun Shih | 2ddabea | 2022-07-21 07:45:44 | [diff] [blame] | 36 | #include "ash/system/camera/autozoom_controller_impl.h" |
Pi-Hsun Shih | faac34f | 2022-08-03 10:39:12 | [diff] [blame] | 37 | #include "ash/system/camera/autozoom_nudge_controller.h" |
Guoxing Zhao | 191ec87 | 2022-11-28 02:06:34 | [diff] [blame] | 38 | #include "ash/system/camera/camera_effects_controller.h" |
Eric Sum | f97e7b89 | 2023-04-17 22:41:44 | [diff] [blame] | 39 | #include "ash/system/geolocation/geolocation_controller.h" |
Ahmed Mehfooz | d618d6b | 2020-02-29 01:46:30 | [diff] [blame] | 40 | #include "ash/system/gesture_education/gesture_education_notification_controller.h" |
Michael Martis | 0a412c6c | 2022-05-10 03:40:07 | [diff] [blame] | 41 | #include "ash/system/human_presence/snooping_protection_controller.h" |
Michael Checo | 76cfece | 2023-02-08 00:53:24 | [diff] [blame] | 42 | #include "ash/system/input_device_settings/input_device_settings_controller_impl.h" |
David Padlipsky | 76712208 | 2023-01-20 00:15:57 | [diff] [blame] | 43 | #include "ash/system/input_device_settings/input_device_tracker.h" |
David Padlipsky | 37b5193 | 2023-01-26 01:44:59 | [diff] [blame] | 44 | #include "ash/system/input_device_settings/keyboard_modifier_metrics_recorder.h" |
Jason Thai | e367085 | 2022-05-10 21:19:18 | [diff] [blame] | 45 | #include "ash/system/keyboard_brightness/keyboard_backlight_color_controller.h" |
Jazz Xu | bfefcba | 2020-09-25 01:59:13 | [diff] [blame] | 46 | #include "ash/system/media/media_tray.h" |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 47 | #include "ash/system/message_center/message_center_controller.h" |
Gordon Seto | 5623514d | 2021-01-27 23:52:28 | [diff] [blame] | 48 | #include "ash/system/network/cellular_setup_notifier.h" |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 49 | #include "ash/system/network/vpn_list_view.h" |
Steven Bennetts | 32f5d55 | 2019-07-09 16:16:13 | [diff] [blame] | 50 | #include "ash/system/night_light/night_light_controller_impl.h" |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 51 | #include "ash/system/palette/palette_tray.h" |
| 52 | #include "ash/system/palette/palette_welcome_bubble.h" |
Jimmy Gong | c6f4fd0 | 2021-02-25 01:55:00 | [diff] [blame] | 53 | #include "ash/system/pcie_peripheral/pcie_peripheral_notification_controller.h" |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 54 | #include "ash/system/power/power_prefs.h" |
Md Shahadat Hossain Shahin | 36bc361 | 2022-08-09 11:01:25 | [diff] [blame] | 55 | #include "ash/system/privacy_hub/privacy_hub_controller.h" |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 56 | #include "ash/system/session/logout_button_tray.h" |
Maria Petrisor | 878ea9f1 | 2021-04-14 17:55:09 | [diff] [blame] | 57 | #include "ash/system/session/logout_confirmation_controller.h" |
Jiaming Cheng | 5bb7128 | 2022-10-06 00:08:45 | [diff] [blame] | 58 | #include "ash/system/unified/quick_settings_footer.h" |
Aya ElAttar | fb1b9c6 | 2020-04-14 08:54:44 | [diff] [blame] | 59 | #include "ash/system/unified/top_shortcuts_view.h" |
Kevin Radtke | a8bd8254ca | 2021-11-16 00:37:48 | [diff] [blame] | 60 | #include "ash/system/unified/unified_system_tray_controller.h" |
Jameson Thies | 647d2d3 | 2022-02-24 23:58:21 | [diff] [blame] | 61 | #include "ash/system/usb_peripheral/usb_peripheral_notification_controller.h" |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 62 | #include "ash/touch/touch_devices_controller.h" |
Sean Kau | d881d18 | 2022-05-24 19:26:09 | [diff] [blame] | 63 | #include "ash/wallpaper/wallpaper_pref_manager.h" |
Ahmed Fakhry | 1d18fafe5 | 2020-02-24 22:40:36 | [diff] [blame] | 64 | #include "ash/wm/desks/desks_restore_util.h" |
Daniel Andersson | 3203dbc | 2022-05-05 23:47:24 | [diff] [blame] | 65 | #include "ash/wm/desks/templates/saved_desk_util.h" |
Elijah Hewer | 4959cc8 | 2023-03-30 22:38:34 | [diff] [blame] | 66 | #include "ash/wm/float/tablet_mode_tuck_education.h" |
Sherri Lin | b6b765a1 | 2022-03-03 11:37:34 | [diff] [blame] | 67 | #include "ash/wm/lock_state_controller.h" |
Cattalyya Nuengsigkapian | f24c05b | 2021-01-15 02:51:18 | [diff] [blame] | 68 | #include "ash/wm/window_cycle/window_cycle_controller.h" |
Yeunjoo Choi | 2d3704c1 | 2022-06-21 02:44:34 | [diff] [blame] | 69 | #include "chromeos/ash/services/assistant/public/cpp/assistant_prefs.h" |
Yue Li | f0da5bf | 2021-11-19 22:01:57 | [diff] [blame] | 70 | #include "chromeos/components/quick_answers/public/cpp/quick_answers_prefs.h" |
Sammie Quon | 2bb7e39 | 2023-02-13 22:23:42 | [diff] [blame] | 71 | #include "chromeos/ui/frame/multitask_menu/multitask_menu_nudge_controller.h" |
anina koehler | f1e29df6 | 2022-08-10 07:22:32 | [diff] [blame] | 72 | #include "chromeos/ui/wm/fullscreen/pref_names.h" |
Yue Li | 0e81c0c | 2021-09-29 03:22:18 | [diff] [blame] | 73 | #include "components/language/core/browser/pref_names.h" |
Amanda Deacon | 48669b4d | 2021-04-27 00:00:23 | [diff] [blame] | 74 | #include "components/live_caption/pref_names.h" |
Abigail Klein | e4c6b5c | 2022-03-30 21:06:45 | [diff] [blame] | 75 | #include "components/soda/constants.h" |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 76 | |
| 77 | namespace ash { |
| 78 | |
| 79 | namespace { |
| 80 | |
| 81 | // Registers prefs whose default values are same in user and signin prefs. |
| 82 | void RegisterProfilePrefs(PrefRegistrySimple* registry, bool for_test) { |
James Cook | 025aa04 | 2019-10-18 23:16:32 | [diff] [blame] | 83 | AccessibilityControllerImpl::RegisterProfilePrefs(registry); |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 84 | AppListControllerImpl::RegisterProfilePrefs(registry); |
David Black | ec4cbcd | 2020-04-15 20:35:25 | [diff] [blame] | 85 | AssistantControllerImpl::RegisterProfilePrefs(registry); |
Pi-Hsun Shih | 2ddabea | 2022-07-21 07:45:44 | [diff] [blame] | 86 | AutozoomControllerImpl::RegisterProfilePrefs(registry); |
Pi-Hsun Shih | faac34f | 2022-08-03 10:39:12 | [diff] [blame] | 87 | AutozoomNudgeController::RegisterProfilePrefs(registry); |
wutao | 3a150d71b | 2020-02-19 22:11:26 | [diff] [blame] | 88 | AmbientController::RegisterProfilePrefs(registry); |
Ramya Gopalan | 96b2aa2 | 2022-08-23 17:30:00 | [diff] [blame] | 89 | CalendarController::RegisterProfilePrefs(registry); |
Guoxing Zhao | 191ec87 | 2022-11-28 02:06:34 | [diff] [blame] | 90 | CameraEffectsController::RegisterProfilePrefs(registry); |
Ahmed Fakhry | 766bac6 | 2021-09-24 02:36:19 | [diff] [blame] | 91 | CaptureModeController::RegisterProfilePrefs(registry); |
Gordon Seto | 5623514d | 2021-01-27 23:52:28 | [diff] [blame] | 92 | CellularSetupNotifier::RegisterProfilePrefs(registry); |
Elijah Hewer | 4959cc8 | 2023-03-30 22:38:34 | [diff] [blame] | 93 | chromeos::MultitaskMenuNudgeController::RegisterProfilePrefs(registry); |
Yulun Wu | 1e35513 | 2020-02-11 20:12:22 | [diff] [blame] | 94 | contextual_tooltip::RegisterProfilePrefs(registry); |
Yulun Wu | 78c26ab | 2020-08-26 06:37:36 | [diff] [blame] | 95 | ClipboardNudgeController::RegisterProfilePrefs(registry); |
Erica Lee | 50bbcae | 2023-01-14 01:26:56 | [diff] [blame] | 96 | ColorPaletteController::RegisterPrefs(registry); |
minch | c568dd7 | 2022-06-24 17:41:43 | [diff] [blame] | 97 | DarkLightModeControllerImpl::RegisterProfilePrefs(registry); |
Ahmed Fakhry | 1d18fafe5 | 2020-02-24 22:40:36 | [diff] [blame] | 98 | desks_restore_util::RegisterProfilePrefs(registry); |
Daniel Andersson | 3203dbc | 2022-05-05 23:47:24 | [diff] [blame] | 99 | saved_desk_util::RegisterProfilePrefs(registry); |
Josiah K | 466b0dc3 | 2021-06-16 23:39:05 | [diff] [blame] | 100 | DockedMagnifierController::RegisterProfilePrefs(registry); |
Andrew Xu | cfed58c | 2022-04-13 22:25:51 | [diff] [blame] | 101 | FeatureDiscoveryDurationReporterImpl::RegisterProfilePrefs(registry); |
Xiaodan Zhu | d5b8187 | 2020-11-12 18:15:29 | [diff] [blame] | 102 | FullscreenController::RegisterProfilePrefs(registry); |
Eric Sum | f97e7b89 | 2023-04-17 22:41:44 | [diff] [blame] | 103 | GeolocationController::RegisterProfilePrefs(registry); |
Ahmed Mehfooz | ccd31e16 | 2020-05-12 01:59:11 | [diff] [blame] | 104 | GestureEducationNotificationController::RegisterProfilePrefs(registry, |
| 105 | for_test); |
Ahmed Mehfooz | e6167f5 | 2020-10-22 20:01:33 | [diff] [blame] | 106 | holding_space_prefs::RegisterProfilePrefs(registry); |
Michael Checo | 76cfece | 2023-02-08 00:53:24 | [diff] [blame] | 107 | InputDeviceSettingsControllerImpl::RegisterProfilePrefs(registry); |
David Padlipsky | 76712208 | 2023-01-20 00:15:57 | [diff] [blame] | 108 | InputDeviceTracker::RegisterProfilePrefs(registry); |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 109 | LoginScreenController::RegisterProfilePrefs(registry, for_test); |
| 110 | LogoutButtonTray::RegisterProfilePrefs(registry); |
Maria Petrisor | 878ea9f1 | 2021-04-14 17:55:09 | [diff] [blame] | 111 | LogoutConfirmationController::RegisterProfilePrefs(registry); |
lbowen | 1e6ed0b | 2022-10-26 21:49:44 | [diff] [blame] | 112 | KeyboardBacklightColorController::RegisterPrefs(registry); |
Chloe Pelling | 186ed3e | 2020-04-27 01:08:34 | [diff] [blame] | 113 | KeyboardControllerImpl::RegisterProfilePrefs(registry); |
David Padlipsky | 37b5193 | 2023-01-26 01:44:59 | [diff] [blame] | 114 | KeyboardModifierMetricsRecorder::RegisterProfilePrefs(registry, for_test); |
Mia Bergeron | 12fd2f18 | 2019-06-11 23:04:46 | [diff] [blame] | 115 | MediaControllerImpl::RegisterProfilePrefs(registry); |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 116 | MessageCenterController::RegisterProfilePrefs(registry); |
Steven Bennetts | 32f5d55 | 2019-07-09 16:16:13 | [diff] [blame] | 117 | NightLightControllerImpl::RegisterProfilePrefs(registry); |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 118 | PaletteTray::RegisterProfilePrefs(registry); |
| 119 | PaletteWelcomeBubble::RegisterProfilePrefs(registry); |
Jimmy Gong | c6f4fd0 | 2021-02-25 01:55:00 | [diff] [blame] | 120 | PciePeripheralNotificationController::RegisterProfilePrefs(registry); |
Md Shahadat Hossain Shahin | 36bc361 | 2022-08-09 11:01:25 | [diff] [blame] | 121 | PrivacyHubController::RegisterProfilePrefs(registry); |
Gil Dekel | 6977703 | 2020-02-07 18:41:53 | [diff] [blame] | 122 | PrivacyScreenController::RegisterProfilePrefs(registry); |
Courtney Wong | fa3b7190 | 2022-05-12 22:21:34 | [diff] [blame] | 123 | ProjectorControllerImpl::RegisterProfilePrefs(registry); |
Daniel Classon | e31b84fd2 | 2021-10-05 02:41:57 | [diff] [blame] | 124 | quick_pair::Mediator::RegisterProfilePrefs(registry); |
Emmanuel Arias Soto | 4de5f2b7 | 2023-04-26 15:58:24 | [diff] [blame^] | 125 | ScreensaverImagesPolicyHandler::RegisterPrefs(registry); |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 126 | ShelfController::RegisterProfilePrefs(registry); |
Michael Martis | 398ffa8 | 2022-05-09 01:11:47 | [diff] [blame] | 127 | SnoopingProtectionController::RegisterProfilePrefs(registry); |
Elijah Hewer | 4959cc8 | 2023-03-30 22:38:34 | [diff] [blame] | 128 | TabletModeTuckEducation::RegisterProfilePrefs(registry); |
Ana Salazar | eb7c2571 | 2020-02-03 20:27:26 | [diff] [blame] | 129 | TouchDevicesController::RegisterProfilePrefs(registry, for_test); |
Kevin Radtke | a8bd8254ca | 2021-11-16 00:37:48 | [diff] [blame] | 130 | UnifiedSystemTrayController::RegisterProfilePrefs(registry); |
Jazz Xu | bfefcba | 2020-09-25 01:59:13 | [diff] [blame] | 131 | MediaTray::RegisterProfilePrefs(registry); |
Jameson Thies | 647d2d3 | 2022-02-24 23:58:21 | [diff] [blame] | 132 | UsbPeripheralNotificationController::RegisterProfilePrefs(registry); |
James Cook | 987b4b3 | 2022-04-02 00:07:08 | [diff] [blame] | 133 | VPNListView::RegisterProfilePrefs(registry); |
Sean Kau | d881d18 | 2022-05-24 19:26:09 | [diff] [blame] | 134 | WallpaperPrefManager::RegisterProfilePrefs(registry); |
Cattalyya Nuengsigkapian | f24c05b | 2021-01-15 02:51:18 | [diff] [blame] | 135 | WindowCycleController::RegisterProfilePrefs(registry); |
James Cook | 4f3640d | 2019-11-19 00:40:35 | [diff] [blame] | 136 | |
Ana Salazar | eb7c2571 | 2020-02-03 20:27:26 | [diff] [blame] | 137 | // Provide prefs registered in the browser for ash_unittests. |
| 138 | if (for_test) { |
Yeunjoo Choi | 65c73cc | 2022-08-02 05:30:16 | [diff] [blame] | 139 | assistant::prefs::RegisterProfilePrefs(registry); |
Yeunjoo Choi | ecf2ba4 | 2021-09-01 01:25:01 | [diff] [blame] | 140 | quick_answers::prefs::RegisterProfilePrefs(registry); |
Roman Sorokin | 8fab497 | 2021-11-17 17:10:36 | [diff] [blame] | 141 | registry->RegisterBooleanPref(prefs::kMouseReverseScroll, false); |
Chloe Pelling | 4a5ed446 | 2022-02-15 02:20:07 | [diff] [blame] | 142 | registry->RegisterBooleanPref(prefs::kSendFunctionKeys, false); |
Yeunjoo Choi | 0c8273a | 2022-11-29 04:22:50 | [diff] [blame] | 143 | registry->RegisterBooleanPref(prefs::kSuggestedContentEnabled, true); |
Roman Sorokin | 8fab497 | 2021-11-17 17:10:36 | [diff] [blame] | 144 | registry->RegisterBooleanPref(::prefs::kLiveCaptionEnabled, false); |
anina koehler | f1e29df6 | 2022-08-10 07:22:32 | [diff] [blame] | 145 | registry->RegisterListPref( |
| 146 | chromeos::prefs::kKeepFullscreenWithoutNotificationUrlAllowList); |
Abigail Klein | e4c6b5c | 2022-03-30 21:06:45 | [diff] [blame] | 147 | registry->RegisterStringPref(::prefs::kLiveCaptionLanguageCode, |
| 148 | speech::kUsEnglishLocale); |
Yue Li | 0e81c0c | 2021-09-29 03:22:18 | [diff] [blame] | 149 | registry->RegisterStringPref(language::prefs::kApplicationLocale, |
| 150 | std::string()); |
Yue Li | 5125160b | 2022-04-04 22:40:39 | [diff] [blame] | 151 | registry->RegisterStringPref(language::prefs::kPreferredLanguages, |
| 152 | std::string()); |
Ana Salazar | eb7c2571 | 2020-02-03 20:27:26 | [diff] [blame] | 153 | } |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 154 | } |
| 155 | |
| 156 | } // namespace |
| 157 | |
Xiyuan Xia | 14619a2 | 2019-05-14 20:20:44 | [diff] [blame] | 158 | void RegisterLocalStatePrefs(PrefRegistrySimple* registry, bool for_test) { |
| 159 | PaletteTray::RegisterLocalStatePrefs(registry); |
Sean Kau | d881d18 | 2022-05-24 19:26:09 | [diff] [blame] | 160 | WallpaperPrefManager::RegisterLocalStatePrefs(registry); |
Xiyuan Xia | 14619a2 | 2019-05-14 20:20:44 | [diff] [blame] | 161 | DetachableBaseHandler::RegisterPrefs(registry); |
| 162 | PowerPrefs::RegisterLocalStatePrefs(registry); |
zauri | 7f404de | 2023-04-04 18:02:05 | [diff] [blame] | 163 | PrivacyHubController::RegisterLocalStatePrefs(registry); |
Xiyuan Xia | 14619a2 | 2019-05-14 20:20:44 | [diff] [blame] | 164 | DisplayPrefs::RegisterLocalStatePrefs(registry); |
Aya ElAttar | d2b3c8a | 2020-06-22 23:02:13 | [diff] [blame] | 165 | LoginExpandedPublicAccountView::RegisterLocalStatePrefs(registry); |
Sherri Lin | b6b765a1 | 2022-03-03 11:37:34 | [diff] [blame] | 166 | LockStateController::RegisterPrefs(registry); |
Daniel Classon | 2ded753e | 2021-12-01 18:42:50 | [diff] [blame] | 167 | quick_pair::Mediator::RegisterLocalStatePrefs(registry); |
Jiaming Cheng | 5bb7128 | 2022-10-06 00:08:45 | [diff] [blame] | 168 | if (ash::features::IsQsRevampEnabled()) |
| 169 | QuickSettingsFooter::RegisterLocalStatePrefs(registry); |
| 170 | else |
| 171 | TopShortcutsView::RegisterLocalStatePrefs(registry); |
lbowen | 1e6ed0b | 2022-10-26 21:49:44 | [diff] [blame] | 172 | KeyboardBacklightColorController::RegisterPrefs(registry); |
Xiyuan Xia | 14619a2 | 2019-05-14 20:20:44 | [diff] [blame] | 173 | } |
| 174 | |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 175 | void RegisterSigninProfilePrefs(PrefRegistrySimple* registry, bool for_test) { |
| 176 | RegisterProfilePrefs(registry, for_test); |
James Cook | ef1411e1 | 2019-10-18 23:49:22 | [diff] [blame] | 177 | PowerPrefs::RegisterSigninProfilePrefs(registry); |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 178 | } |
| 179 | |
| 180 | void RegisterUserProfilePrefs(PrefRegistrySimple* registry, bool for_test) { |
| 181 | RegisterProfilePrefs(registry, for_test); |
James Cook | ef1411e1 | 2019-10-18 23:49:22 | [diff] [blame] | 182 | PowerPrefs::RegisterUserProfilePrefs(registry); |
David Black | 57245f3 | 2023-03-07 19:36:08 | [diff] [blame] | 183 | SessionControllerImpl::RegisterUserProfilePrefs(registry); |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 184 | } |
| 185 | |
| 186 | } // namespace ash |