kiosk: Move Kiosk related pref registration under KioskController
KioskController::RegisterLocalStatePrefs and RegisterProfilePrefs become
an "umbrella" location where other features under Kiosk can register
prefs.
This moves in the direction of removing KioskSystemSession from the
public interface of Kiosk, in favor of KioskController.
This change doesn't touch Lacros Kiosk related prefs from
kiosk_session_service_lacros.h. It causes DEPS problems since
KioskController lives in c/b/ash, which can't access c/b/lacros.
Bug: 339170726
Fixed: 357812214
Change-Id: I3fb49bd361267b085cfa0051472126296ea156cc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5763023
Reviewed-by: Polina Bondarenko <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Commit-Queue: Edman Anjos <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1337823}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 4b5f2e0e..c9645bd 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -346,10 +346,7 @@
#include "chrome/browser/ash/account_manager/account_manager_edu_coexistence_controller.h"
#include "chrome/browser/ash/app_list/app_list_syncable_service.h"
#include "chrome/browser/ash/app_list/arc/arc_app_list_prefs.h"
-#include "chrome/browser/ash/app_mode/kiosk_chrome_app_manager.h"
-#include "chrome/browser/ash/app_mode/kiosk_cryptohome_remover.h"
-#include "chrome/browser/ash/app_mode/kiosk_system_session.h"
-#include "chrome/browser/ash/app_mode/web_app/web_kiosk_app_manager.h"
+#include "chrome/browser/ash/app_mode/kiosk_controller.h"
#include "chrome/browser/ash/app_restore/full_restore_prefs.h"
#include "chrome/browser/ash/apps/apk_web_app_service.h"
#include "chrome/browser/ash/arc/boot_phase_monitor/arc_boot_phase_monitor_bridge.h"
@@ -1612,9 +1609,7 @@
ash::FastTransitionObserver::RegisterPrefs(registry);
ash::HWDataUsageController::RegisterLocalStatePrefs(registry);
ash::KerberosCredentialsManager::RegisterLocalStatePrefs(registry);
- ash::KioskChromeAppManager::RegisterLocalStatePrefs(registry);
- ash::KioskSystemSession::RegisterLocalStatePrefs(registry);
- ash::KioskCryptohomeRemover::RegisterPrefs(registry);
+ ash::KioskController::RegisterLocalStatePrefs(registry);
ash::language_prefs::RegisterPrefs(registry);
ash::local_search_service::SearchMetricsReporter::RegisterLocalStatePrefs(
registry);
@@ -1639,7 +1634,6 @@
ash::TimeZoneResolver::RegisterPrefs(registry);
ash::UserImageManagerImpl::RegisterPrefs(registry);
ash::UserSessionManager::RegisterPrefs(registry);
- ash::WebKioskAppManager::RegisterPrefs(registry);
component_updater::MetadataTable::RegisterPrefs(registry);
ash::CryptAuthDeviceIdProviderImpl::RegisterLocalPrefs(registry);
extensions::ExtensionAssetsManagerChromeOS::RegisterPrefs(registry);
@@ -2083,7 +2077,7 @@
ProjectorAppClientImpl::RegisterProfilePrefs(registry);
ash::floating_workspace_util::RegisterProfilePrefs(registry);
policy::RebootNotificationsScheduler::RegisterProfilePrefs(registry);
- ash::KioskChromeAppManager::RegisterProfilePrefs(registry);
+ ash::KioskController::RegisterProfilePrefs(registry);
file_manager::file_tasks::RegisterProfilePrefs(registry);
file_manager::prefs::RegisterProfilePrefs(registry);
bruschetta::prefs::RegisterProfilePrefs(registry);