Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(610)

Side by Side Diff: extensions/browser/browser_context_keyed_service_factories.cc

Issue 696543002: Move the chrome.management API to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/browser/browser_context_keyed_service_factories.h" 5 #include "extensions/browser/browser_context_keyed_service_factories.h"
6 6
7 #include "extensions/browser/api/api_resource_manager.h" 7 #include "extensions/browser/api/api_resource_manager.h"
8 #include "extensions/browser/api/management/management_api.h"
8 #include "extensions/browser/api/runtime/runtime_api.h" 9 #include "extensions/browser/api/runtime/runtime_api.h"
9 #include "extensions/browser/api/serial/serial_connection.h" 10 #include "extensions/browser/api/serial/serial_connection.h"
10 #include "extensions/browser/api/socket/socket.h" 11 #include "extensions/browser/api/socket/socket.h"
11 #include "extensions/browser/api/socket/tcp_socket.h" 12 #include "extensions/browser/api/socket/tcp_socket.h"
12 #include "extensions/browser/api/socket/udp_socket.h" 13 #include "extensions/browser/api/socket/udp_socket.h"
13 #include "extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.h" 14 #include "extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.h"
14 #include "extensions/browser/api/sockets_tcp_server/tcp_server_socket_event_disp atcher.h" 15 #include "extensions/browser/api/sockets_tcp_server/tcp_server_socket_event_disp atcher.h"
15 #include "extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.h" 16 #include "extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.h"
16 #include "extensions/browser/api/storage/storage_frontend.h" 17 #include "extensions/browser/api/storage/storage_frontend.h"
17 #include "extensions/browser/api/system_info/system_info_api.h" 18 #include "extensions/browser/api/system_info/system_info_api.h"
18 #include "extensions/browser/extension_prefs_factory.h" 19 #include "extensions/browser/extension_prefs_factory.h"
19 #include "extensions/browser/process_manager_factory.h" 20 #include "extensions/browser/process_manager_factory.h"
20 #include "extensions/browser/renderer_startup_helper.h" 21 #include "extensions/browser/renderer_startup_helper.h"
21 22
22 namespace extensions { 23 namespace extensions {
23 24
24 void EnsureBrowserContextKeyedServiceFactoriesBuilt() { 25 void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
25 ApiResourceManager< 26 ApiResourceManager<
26 extensions::ResumableTCPServerSocket>::GetFactoryInstance(); 27 extensions::ResumableTCPServerSocket>::GetFactoryInstance();
27 ApiResourceManager<extensions::ResumableTCPSocket>::GetFactoryInstance(); 28 ApiResourceManager<extensions::ResumableTCPSocket>::GetFactoryInstance();
28 ApiResourceManager<extensions::ResumableUDPSocket>::GetFactoryInstance(); 29 ApiResourceManager<extensions::ResumableUDPSocket>::GetFactoryInstance();
29 ApiResourceManager<extensions::SerialConnection>::GetFactoryInstance(); 30 ApiResourceManager<extensions::SerialConnection>::GetFactoryInstance();
30 ApiResourceManager<extensions::Socket>::GetFactoryInstance(); 31 ApiResourceManager<extensions::Socket>::GetFactoryInstance();
31 core_api::TCPServerSocketEventDispatcher::GetFactoryInstance(); 32 core_api::TCPServerSocketEventDispatcher::GetFactoryInstance();
32 core_api::TCPSocketEventDispatcher::GetFactoryInstance(); 33 core_api::TCPSocketEventDispatcher::GetFactoryInstance();
33 core_api::UDPSocketEventDispatcher::GetFactoryInstance(); 34 core_api::UDPSocketEventDispatcher::GetFactoryInstance();
35 extensions::ManagementAPI::GetFactoryInstance();
34 ExtensionPrefsFactory::GetInstance(); 36 ExtensionPrefsFactory::GetInstance();
35 ProcessManagerFactory::GetInstance(); 37 ProcessManagerFactory::GetInstance();
36 RendererStartupHelperFactory::GetInstance(); 38 RendererStartupHelperFactory::GetInstance();
37 RuntimeAPI::GetFactoryInstance(); 39 RuntimeAPI::GetFactoryInstance();
38 StorageFrontend::GetFactoryInstance(); 40 StorageFrontend::GetFactoryInstance();
39 SystemInfoAPI::GetFactoryInstance(); 41 SystemInfoAPI::GetFactoryInstance();
40 } 42 }
41 43
42 } // namespace extensions 44 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/runtime/runtime_apitest.cc ('k') | extensions/common/api/_api_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698