Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / extensions / browser / browser_context_keyed_service_factories.cc
blob215cf4ec560b57a41dd21d9e1eb25b5efe62f692
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "extensions/browser/browser_context_keyed_service_factories.h"
7 #include "extensions/browser/api/alarms/alarm_manager.h"
8 #include "extensions/browser/api/api_resource_manager.h"
9 #include "extensions/browser/api/audio/audio_api.h"
10 #include "extensions/browser/api/bluetooth/bluetooth_api.h"
11 #include "extensions/browser/api/bluetooth/bluetooth_private_api.h"
12 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h"
13 #include "extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h"
14 #include "extensions/browser/api/hid/hid_device_manager.h"
15 #include "extensions/browser/api/idle/idle_manager_factory.h"
16 #include "extensions/browser/api/management/management_api.h"
17 #include "extensions/browser/api/networking_config/networking_config_service_factory.h"
18 #include "extensions/browser/api/networking_private/networking_private_event_router_factory.h"
19 #include "extensions/browser/api/power/power_api.h"
20 #include "extensions/browser/api/runtime/runtime_api.h"
21 #include "extensions/browser/api/serial/serial_connection.h"
22 #include "extensions/browser/api/socket/socket.h"
23 #include "extensions/browser/api/socket/tcp_socket.h"
24 #include "extensions/browser/api/socket/udp_socket.h"
25 #include "extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.h"
26 #include "extensions/browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h"
27 #include "extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.h"
28 #include "extensions/browser/api/storage/storage_frontend.h"
29 #include "extensions/browser/api/system_info/system_info_api.h"
30 #include "extensions/browser/api/usb/usb_device_resource.h"
31 #include "extensions/browser/api/usb/usb_event_router.h"
32 #include "extensions/browser/api/usb/usb_guid_map.h"
33 #include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h"
34 #include "extensions/browser/api/vpn_provider/vpn_service_factory.h"
35 #include "extensions/browser/api/web_request/web_request_api.h"
36 #include "extensions/browser/api/webcam_private/webcam_private_api.h"
37 #include "extensions/browser/declarative_user_script_manager_factory.h"
38 #include "extensions/browser/event_router_factory.h"
39 #include "extensions/browser/extension_message_filter.h"
40 #include "extensions/browser/extension_prefs_factory.h"
41 #include "extensions/browser/process_manager_factory.h"
42 #include "extensions/browser/renderer_startup_helper.h"
44 namespace extensions {
46 void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
47 AlarmManager::GetFactoryInstance();
48 ApiResourceManager<ResumableTCPServerSocket>::GetFactoryInstance();
49 ApiResourceManager<ResumableTCPSocket>::GetFactoryInstance();
50 ApiResourceManager<ResumableUDPSocket>::GetFactoryInstance();
51 ApiResourceManager<SerialConnection>::GetFactoryInstance();
52 ApiResourceManager<Socket>::GetFactoryInstance();
53 ApiResourceManager<UsbDeviceResource>::GetFactoryInstance();
54 AudioAPI::GetFactoryInstance();
55 BluetoothAPI::GetFactoryInstance();
56 BluetoothLowEnergyAPI::GetFactoryInstance();
57 BluetoothPrivateAPI::GetFactoryInstance();
58 #if defined(OS_CHROMEOS)
59 chromeos::VpnServiceFactory::GetInstance();
60 #endif
61 api::BluetoothSocketEventDispatcher::GetFactoryInstance();
62 api::TCPServerSocketEventDispatcher::GetFactoryInstance();
63 api::TCPSocketEventDispatcher::GetFactoryInstance();
64 api::UDPSocketEventDispatcher::GetFactoryInstance();
65 DeclarativeUserScriptManagerFactory::GetInstance();
66 EventRouterFactory::GetInstance();
67 ExtensionMessageFilter::EnsureShutdownNotifierFactoryBuilt();
68 ExtensionPrefsFactory::GetInstance();
69 HidDeviceManager::GetFactoryInstance();
70 IdleManagerFactory::GetInstance();
71 ManagementAPI::GetFactoryInstance();
72 #if defined(OS_CHROMEOS)
73 NetworkingConfigServiceFactory::GetInstance();
74 #endif
75 #if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_MACOSX)
76 NetworkingPrivateEventRouterFactory::GetInstance();
77 #endif
78 PowerAPI::GetFactoryInstance();
79 ProcessManagerFactory::GetInstance();
80 RendererStartupHelperFactory::GetInstance();
81 RuntimeAPI::GetFactoryInstance();
82 StorageFrontend::GetFactoryInstance();
83 SystemInfoAPI::GetFactoryInstance();
84 UsbEventRouter::GetFactoryInstance();
85 UsbGuidMap::GetFactoryInstance();
86 #if defined(OS_CHROMEOS)
87 VirtualKeyboardAPI::GetFactoryInstance();
88 WebcamPrivateAPI::GetFactoryInstance();
89 #endif
90 WebRequestAPI::GetFactoryInstance();
93 } // namespace extensions