Move per-profile prefs into a per-profile object
The location/microphone/tab-access prefs are per-profile and would more
appropriately live on an object scoped to a single profile, rather than
the global GlicLauncherConfiguration.
This CL moves these prefs to a new GlicProfileConfiguration which is
owned by the GlicKeyedService, a per-profile object.
This is a non-functional change.
Bug: 379168195
Change-Id: I295e49a81e679bb1fd7692e320059e9e09027d78
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6127753
Owners-Override: David Bokan <[email protected]>
Commit-Queue: David Bokan <[email protected]>
Reviewed-by: Anthony Cui <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1400967}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 97819ed..edbfb77e 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -547,6 +547,7 @@
#endif
#if BUILDFLAG(ENABLE_GLIC)
+#include "chrome/browser/glic/glic_profile_configuration.h"
#include "chrome/browser/glic/launcher/glic_launcher_configuration.h"
#endif
@@ -2038,7 +2039,7 @@
DownloadPrefs::RegisterProfilePrefs(registry);
fingerprinting_protection_filter::prefs::RegisterProfilePrefs(registry);
#if BUILDFLAG(ENABLE_GLIC)
- glic::GlicLauncherConfiguration::RegisterProfilePrefs(registry);
+ glic::GlicProfileConfiguration::RegisterProfilePrefs(registry);
#endif
permissions::PermissionHatsTriggerHelper::RegisterProfilePrefs(registry);
history_clusters::prefs::RegisterProfilePrefs(registry);