[Lacros] Allow Lacros-extension set proxies in Ash
Proxies set in the Lacros primary profile should be propagated to Ash.
Ash will forward the extension set proxies to the PlayStore and
to Chrome OS system services.
The proxy will remain active in Ash until any extension in the primary
profile clears the proxy (the proxy will get cleared in Lacros and
Lacros will send a request to Ash to clear the proxy) or until the
extension which is controlling the proxy is uninstalled.
This change is required so we don't break expectations of existing
customers.
This CL was split from CL:3162599.
Bug: b:192915736
Test: browser_tests
Change-Id: I1604d48cfe090fccabaf92ce6acba1ef6998970d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3193532
Commit-Queue: Andreea-Elena Costinas <[email protected]>
Reviewed-by: James Cook <[email protected]>
Reviewed-by: Kyle Horimoto <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Reviewed-by: Roland Bock <[email protected]>
Cr-Commit-Position: refs/heads/main@{#928088}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index d25a0dd5..341597a 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -294,6 +294,7 @@
#include "chrome/browser/ash/child_accounts/time_limits/app_activity_registry.h"
#include "chrome/browser/ash/child_accounts/time_limits/app_time_controller.h"
#include "chrome/browser/ash/crosapi/browser_util.h"
+#include "chrome/browser/ash/crosapi/network_settings_service_ash.h"
#include "chrome/browser/ash/crostini/crostini_pref_names.h"
#include "chrome/browser/ash/cryptauth/client_app_metadata_provider_service.h"
#include "chrome/browser/ash/cryptauth/cryptauth_device_id_provider_impl.h"
@@ -1313,6 +1314,7 @@
ash::FamilyUserChromeActivityMetrics::RegisterProfilePrefs(registry);
ash::FamilyUserMetricsService::RegisterProfilePrefs(registry);
ash::FamilyUserSessionMetrics::RegisterProfilePrefs(registry);
+ crosapi::NetworkSettingsServiceAsh::RegisterProfilePrefs(registry);
chromeos::InlineLoginHandlerChromeOS::RegisterProfilePrefs(registry);
ash::first_run::RegisterProfilePrefs(registry);
ash::file_system_provider::RegisterProfilePrefs(registry);