Move SU preferences registration to pref library

Bug: b/306376651
Change-Id: Ie000e5817c533066746a816006d341ba03d284dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4994249
Reviewed-by: Alex Ilin <[email protected]>
Reviewed-by: Tomek Jurkiewicz <[email protected]>
Reviewed-by: Sylvain Defresne <[email protected]>
Code-Coverage: [email protected] <[email protected]>
Commit-Queue: Anthi Orfanou <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1220312}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 2834b70..e3bac46 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -167,6 +167,7 @@
 #include "components/signin/public/identity_manager/identity_manager.h"
 #include "components/site_engagement/content/site_engagement_service.h"
 #include "components/subresource_filter/content/browser/ruleset_service.h"
+#include "components/supervised_user/core/browser/supervised_user_preferences.h"
 #include "components/supervised_user/core/common/buildflags.h"
 #include "components/sync/base/pref_names.h"
 #include "components/sync/service/glue/sync_transport_data_prefs.h"
@@ -1766,8 +1767,7 @@
 #endif
 
 #if BUILDFLAG(ENABLE_SUPERVISED_USERS)
-  supervised_user::ChildAccountService::RegisterProfilePrefs(registry);
-  supervised_user::SupervisedUserService::RegisterProfilePrefs(registry);
+  supervised_user::RegisterProfilePrefs(registry);
 #endif
 
 #if BUILDFLAG(ENABLE_FEED_V2)