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

Side by Side Diff: extensions/common/common_manifest_handlers.cc

Issue 719243002: Move default_locale manifest handler out of //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: type alias 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/common/common_manifest_handlers.h" 5 #include "extensions/common/common_manifest_handlers.h"
6 6
7 #include "extensions/common/api/bluetooth/bluetooth_manifest_handler.h" 7 #include "extensions/common/api/bluetooth/bluetooth_manifest_handler.h"
8 #include "extensions/common/api/sockets/sockets_manifest_handler.h" 8 #include "extensions/common/api/sockets/sockets_manifest_handler.h"
9 #include "extensions/common/manifest_handler.h" 9 #include "extensions/common/manifest_handler.h"
10 #include "extensions/common/manifest_handlers/background_info.h" 10 #include "extensions/common/manifest_handlers/background_info.h"
11 #include "extensions/common/manifest_handlers/csp_info.h" 11 #include "extensions/common/manifest_handlers/csp_info.h"
12 #include "extensions/common/manifest_handlers/default_locale_handler.h"
12 #include "extensions/common/manifest_handlers/externally_connectable.h" 13 #include "extensions/common/manifest_handlers/externally_connectable.h"
13 #include "extensions/common/manifest_handlers/file_handler_info.h" 14 #include "extensions/common/manifest_handlers/file_handler_info.h"
14 #include "extensions/common/manifest_handlers/icons_handler.h" 15 #include "extensions/common/manifest_handlers/icons_handler.h"
15 #include "extensions/common/manifest_handlers/incognito_info.h" 16 #include "extensions/common/manifest_handlers/incognito_info.h"
16 #include "extensions/common/manifest_handlers/kiosk_mode_info.h" 17 #include "extensions/common/manifest_handlers/kiosk_mode_info.h"
17 #include "extensions/common/manifest_handlers/launcher_page_info.h" 18 #include "extensions/common/manifest_handlers/launcher_page_info.h"
18 #include "extensions/common/manifest_handlers/nacl_modules_handler.h" 19 #include "extensions/common/manifest_handlers/nacl_modules_handler.h"
19 #include "extensions/common/manifest_handlers/oauth2_manifest_handler.h" 20 #include "extensions/common/manifest_handlers/oauth2_manifest_handler.h"
20 #include "extensions/common/manifest_handlers/offline_enabled_info.h" 21 #include "extensions/common/manifest_handlers/offline_enabled_info.h"
21 #include "extensions/common/manifest_handlers/sandboxed_page_info.h" 22 #include "extensions/common/manifest_handlers/sandboxed_page_info.h"
22 #include "extensions/common/manifest_handlers/shared_module_info.h" 23 #include "extensions/common/manifest_handlers/shared_module_info.h"
23 #include "extensions/common/manifest_handlers/web_accessible_resources_info.h" 24 #include "extensions/common/manifest_handlers/web_accessible_resources_info.h"
24 #include "extensions/common/manifest_handlers/webview_info.h" 25 #include "extensions/common/manifest_handlers/webview_info.h"
25 26
26 namespace extensions { 27 namespace extensions {
27 28
28 void RegisterCommonManifestHandlers() { 29 void RegisterCommonManifestHandlers() {
29 DCHECK(!ManifestHandler::IsRegistrationFinalized()); 30 DCHECK(!ManifestHandler::IsRegistrationFinalized());
30 (new BackgroundManifestHandler)->Register(); 31 (new BackgroundManifestHandler)->Register();
31 (new BluetoothManifestHandler)->Register(); 32 (new BluetoothManifestHandler)->Register();
32 (new CSPHandler(false))->Register(); 33 (new CSPHandler(false))->Register();
33 (new CSPHandler(true))->Register(); 34 (new CSPHandler(true))->Register();
35 (new DefaultLocaleHandler)->Register();
34 (new ExternallyConnectableHandler)->Register(); 36 (new ExternallyConnectableHandler)->Register();
35 (new FileHandlersParser)->Register(); 37 (new FileHandlersParser)->Register();
36 (new IconsHandler)->Register(); 38 (new IconsHandler)->Register();
37 (new IncognitoHandler)->Register(); 39 (new IncognitoHandler)->Register();
38 (new KioskModeHandler)->Register(); 40 (new KioskModeHandler)->Register();
39 (new LauncherPageHandler)->Register(); 41 (new LauncherPageHandler)->Register();
40 #if !defined(DISABLE_NACL) 42 #if !defined(DISABLE_NACL)
41 (new NaClModulesHandler)->Register(); 43 (new NaClModulesHandler)->Register();
42 #endif 44 #endif
43 (new OAuth2ManifestHandler)->Register(); 45 (new OAuth2ManifestHandler)->Register();
44 (new OfflineEnabledHandler)->Register(); 46 (new OfflineEnabledHandler)->Register();
45 (new SandboxedPageHandler)->Register(); 47 (new SandboxedPageHandler)->Register();
46 (new SharedModuleHandler)->Register(); 48 (new SharedModuleHandler)->Register();
47 (new SocketsManifestHandler)->Register(); 49 (new SocketsManifestHandler)->Register();
48 (new WebAccessibleResourcesHandler)->Register(); 50 (new WebAccessibleResourcesHandler)->Register();
49 (new WebviewHandler)->Register(); 51 (new WebviewHandler)->Register();
50 } 52 }
51 53
52 } // namespace extensions 54 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/api/_manifest_features.json ('k') | extensions/common/manifest_handlers/default_locale_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698