2015-07-16 23:40:01 +02:00
|
|
|
// Copyright 2015 The Chromium Embedded Framework Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be found
|
|
|
|
// in the LICENSE file.
|
|
|
|
|
2018-02-02 23:43:33 +01:00
|
|
|
#include "libcef/browser/browser_context_keyed_service_factories.h"
|
|
|
|
#include "libcef/common/extensions/extensions_util.h"
|
2015-07-16 23:40:01 +02:00
|
|
|
|
2022-08-23 03:37:40 +02:00
|
|
|
#include "base/feature_list.h"
|
2016-08-04 14:37:53 +02:00
|
|
|
#include "chrome/browser/content_settings/cookie_settings_factory.h"
|
2020-10-08 21:54:42 +02:00
|
|
|
#include "chrome/browser/media/router/chrome_media_router_factory.h"
|
2017-12-07 22:44:24 +01:00
|
|
|
#include "chrome/browser/plugins/plugin_prefs_factory.h"
|
2019-09-25 15:59:51 +02:00
|
|
|
#include "chrome/browser/profiles/renderer_updater_factory.h"
|
2022-08-23 03:37:40 +02:00
|
|
|
#include "chrome/browser/reduce_accept_language/reduce_accept_language_factory.h"
|
2017-12-07 22:44:24 +01:00
|
|
|
#include "chrome/browser/spellchecker/spellcheck_factory.h"
|
|
|
|
#include "chrome/browser/themes/theme_service_factory.h"
|
2015-10-17 02:44:00 +02:00
|
|
|
#include "chrome/browser/ui/prefs/prefs_tab_helper.h"
|
2022-08-23 03:37:40 +02:00
|
|
|
#include "components/permissions/features.h"
|
2017-08-30 13:46:21 +02:00
|
|
|
#include "extensions/browser/api/alarms/alarm_manager.h"
|
2017-09-11 20:42:30 +02:00
|
|
|
#include "extensions/browser/api/storage/storage_frontend.h"
|
2015-07-16 23:40:01 +02:00
|
|
|
#include "extensions/browser/renderer_startup_helper.h"
|
2022-08-23 03:37:40 +02:00
|
|
|
#include "services/network/public/cpp/features.h"
|
|
|
|
|
2015-07-16 23:40:01 +02:00
|
|
|
namespace cef {
|
|
|
|
|
|
|
|
void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
|
2016-08-04 14:37:53 +02:00
|
|
|
CookieSettingsFactory::GetInstance();
|
2020-10-08 21:54:42 +02:00
|
|
|
media_router::ChromeMediaRouterFactory::GetInstance();
|
2017-12-07 22:44:24 +01:00
|
|
|
PluginPrefsFactory::GetInstance();
|
2015-10-17 02:44:00 +02:00
|
|
|
PrefsTabHelper::GetServiceInstance();
|
2019-09-25 15:59:51 +02:00
|
|
|
RendererUpdaterFactory::GetInstance();
|
2017-12-07 22:44:24 +01:00
|
|
|
SpellcheckServiceFactory::GetInstance();
|
|
|
|
ThemeServiceFactory::GetInstance();
|
2018-02-02 23:43:33 +01:00
|
|
|
|
|
|
|
if (extensions::ExtensionsEnabled()) {
|
|
|
|
extensions::AlarmManager::GetFactoryInstance();
|
|
|
|
extensions::RendererStartupHelperFactory::GetInstance();
|
|
|
|
extensions::StorageFrontend::GetFactoryInstance();
|
|
|
|
}
|
2022-08-23 03:37:40 +02:00
|
|
|
|
|
|
|
if (base::FeatureList::IsEnabled(network::features::kReduceAcceptLanguage)) {
|
|
|
|
ReduceAcceptLanguageFactory::GetInstance();
|
|
|
|
}
|
2015-07-16 23:40:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace cef
|