mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@@ -14,17 +14,12 @@
|
||||
#include "chrome/browser/spellchecker/spellcheck_factory.h"
|
||||
#include "chrome/browser/themes/theme_service_factory.h"
|
||||
#include "chrome/browser/ui/prefs/prefs_tab_helper.h"
|
||||
#include "components/optimization_guide/machine_learning_tflite_buildflags.h"
|
||||
#include "components/permissions/features.h"
|
||||
#include "extensions/browser/api/alarms/alarm_manager.h"
|
||||
#include "extensions/browser/api/storage/storage_frontend.h"
|
||||
#include "extensions/browser/renderer_startup_helper.h"
|
||||
#include "services/network/public/cpp/features.h"
|
||||
|
||||
#if BUILDFLAG(BUILD_WITH_TFLITE_LIB)
|
||||
#include "chrome/browser/permissions/prediction_model_handler_factory.h"
|
||||
#endif
|
||||
|
||||
namespace cef {
|
||||
|
||||
void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
|
||||
@@ -45,13 +40,6 @@ void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
|
||||
if (base::FeatureList::IsEnabled(network::features::kReduceAcceptLanguage)) {
|
||||
ReduceAcceptLanguageFactory::GetInstance();
|
||||
}
|
||||
|
||||
#if BUILDFLAG(BUILD_WITH_TFLITE_LIB)
|
||||
if (base::FeatureList::IsEnabled(
|
||||
permissions::features::kPermissionOnDeviceNotificationPredictions)) {
|
||||
PredictionModelHandlerFactory::GetInstance();
|
||||
}
|
||||
#endif // BUILDFLAG(BUILD_WITH_TFLITE_LIB)
|
||||
}
|
||||
|
||||
} // namespace cef
|
||||
|
Reference in New Issue
Block a user