alloy: Remove optimization/prediction service usage (see issue #3352)

This service is required by the "PermissionOnDeviceNotificationPredictions"
feature which is enabled by default in https://crbug.com/1350956. It uses a
Google backend service as described at https://go.dev/solutions/google/chrome.

This change removes the usage of PredictionBasedPermissionUiSelector, which
triggered this dependency, along with related startup complexity that was added
to support the optimization/prediction service in the M106 update.
This commit is contained in:
Marshall Greenblatt
2022-08-23 12:20:45 -04:00
parent 7659dd60ba
commit 5dc69c6cdb
16 changed files with 29 additions and 135 deletions

View File

@@ -16,14 +16,12 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/event_router_forwarder.h"
#include "media/media_buildflags.h"
#include "services/network/public/cpp/network_quality_tracker.h"
namespace extensions {
class ExtensionsBrowserClient;
class ExtensionsClient;
} // namespace extensions
class ChromeMetricsServicesManagerClient;
class ChromeProfileManagerAlloy;
class BackgroundModeManager {
@@ -131,16 +129,6 @@ class ChromeBrowserProcessAlloy : public BrowserProcess {
background_printing_manager_;
std::unique_ptr<PrefService> local_state_;
// |metrics_services_manager_| owns this.
raw_ptr<ChromeMetricsServicesManagerClient> metrics_services_manager_client_ =
nullptr;
// Must be destroyed before |local_state_| and |profile_manager_|.
std::unique_ptr<metrics_services_manager::MetricsServicesManager>
metrics_services_manager_;
std::unique_ptr<network::NetworkQualityTracker> network_quality_tracker_;
// Must be destroyed after |local_state_|.
std::unique_ptr<policy::ChromeBrowserPolicyConnector>
browser_policy_connector_;