1 // Copyright 2015 The Chromium Embedded Framework Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be found 3 // in the LICENSE file. 4 5 #include "libcef/browser/browser_context_keyed_service_factories.h" 6 #include "libcef/common/extensions/extensions_util.h" 7 8 #include "chrome/browser/content_settings/cookie_settings_factory.h" 9 #include "chrome/browser/media/router/chrome_media_router_factory.h" 10 #include "chrome/browser/plugins/plugin_prefs_factory.h" 11 #include "chrome/browser/profiles/renderer_updater_factory.h" 12 #include "chrome/browser/spellchecker/spellcheck_factory.h" 13 #include "chrome/browser/themes/theme_service_factory.h" 14 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" 15 #include "extensions/browser/api/alarms/alarm_manager.h" 16 #include "extensions/browser/api/storage/storage_frontend.h" 17 #include "extensions/browser/renderer_startup_helper.h" 18 19 namespace cef { 20 EnsureBrowserContextKeyedServiceFactoriesBuilt()21void EnsureBrowserContextKeyedServiceFactoriesBuilt() { 22 CookieSettingsFactory::GetInstance(); 23 media_router::ChromeMediaRouterFactory::GetInstance(); 24 PluginPrefsFactory::GetInstance(); 25 PrefsTabHelper::GetServiceInstance(); 26 RendererUpdaterFactory::GetInstance(); 27 SpellcheckServiceFactory::GetInstance(); 28 ThemeServiceFactory::GetInstance(); 29 30 if (extensions::ExtensionsEnabled()) { 31 extensions::AlarmManager::GetFactoryInstance(); 32 extensions::RendererStartupHelperFactory::GetInstance(); 33 extensions::StorageFrontend::GetFactoryInstance(); 34 } 35 } 36 37 } // namespace cef 38