OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/extensions/api/commands/command_service.h" | 5 #include "chrome/browser/extensions/api/commands/command_service.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/prefs/scoped_user_pref_update.h" | 8 #include "base/prefs/scoped_user_pref_update.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/browser/extensions/api/commands/commands.h" | 12 #include "chrome/browser/extensions/api/commands/commands.h" |
13 #include "chrome/browser/extensions/extension_commands_global_registry.h" | 13 #include "chrome/browser/extensions/extension_commands_global_registry.h" |
14 #include "chrome/browser/extensions/extension_function_registry.h" | 14 #include "chrome/browser/extensions/extension_function_registry.h" |
15 #include "chrome/browser/extensions/extension_keybinding_registry.h" | 15 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
16 #include "chrome/browser/extensions/extension_service.h" | 16 #include "chrome/browser/extensions/extension_service.h" |
17 #include "chrome/browser/extensions/extension_system.h" | 17 #include "chrome/browser/extensions/extension_system.h" |
18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/ui/accelerator_utils.h" | 19 #include "chrome/browser/ui/accelerator_utils.h" |
20 #include "chrome/common/extensions/api/commands/commands_handler.h" | 20 #include "chrome/common/extensions/api/commands/commands_handler.h" |
21 #include "chrome/common/extensions/feature_switch.h" | |
22 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
23 #include "components/user_prefs/pref_registry_syncable.h" | 22 #include "components/user_prefs/pref_registry_syncable.h" |
24 #include "content/public/browser/notification_details.h" | 23 #include "content/public/browser/notification_details.h" |
25 #include "content/public/browser/notification_service.h" | 24 #include "content/public/browser/notification_service.h" |
| 25 #include "extensions/common/feature_switch.h" |
26 | 26 |
27 using extensions::Extension; | 27 using extensions::Extension; |
28 using extensions::ExtensionPrefs; | 28 using extensions::ExtensionPrefs; |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 const char kExtension[] = "extension"; | 32 const char kExtension[] = "extension"; |
33 const char kCommandName[] = "command_name"; | 33 const char kCommandName[] = "command_name"; |
34 const char kGlobal[] = "global"; | 34 const char kGlobal[] = "global"; |
35 | 35 |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 | 457 |
458 return true; | 458 return true; |
459 } | 459 } |
460 | 460 |
461 template <> | 461 template <> |
462 void ProfileKeyedAPIFactory<CommandService>::DeclareFactoryDependencies() { | 462 void ProfileKeyedAPIFactory<CommandService>::DeclareFactoryDependencies() { |
463 DependsOn(ExtensionCommandsGlobalRegistry::GetFactoryInstance()); | 463 DependsOn(ExtensionCommandsGlobalRegistry::GetFactoryInstance()); |
464 } | 464 } |
465 | 465 |
466 } // namespace extensions | 466 } // namespace extensions |
OLD | NEW |