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/ui/webui/extensions/command_handler.h" | 5 #include "chrome/browser/ui/webui/extensions/command_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/extensions/api/commands/command_service.h" | 10 #include "chrome/browser/extensions/api/commands/command_service.h" |
11 #include "chrome/browser/extensions/extension_keybinding_registry.h" | 11 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
12 #include "chrome/browser/extensions/extension_service.h" | 12 #include "chrome/browser/extensions/extension_service.h" |
13 #include "chrome/browser/extensions/extension_system.h" | 13 #include "chrome/browser/extensions/extension_system.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/common/extensions/extension_manifest_constants.h" | |
16 #include "chrome/common/extensions/extension_set.h" | 15 #include "chrome/common/extensions/extension_set.h" |
17 #include "content/public/browser/web_ui.h" | 16 #include "content/public/browser/web_ui.h" |
18 #include "content/public/browser/web_ui_data_source.h" | 17 #include "content/public/browser/web_ui_data_source.h" |
19 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
20 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
21 | 20 |
22 namespace extensions { | 21 namespace extensions { |
23 | 22 |
24 CommandHandler::CommandHandler(Profile* profile) : profile_(profile) { | 23 CommandHandler::CommandHandler(Profile* profile) : profile_(profile) { |
25 } | 24 } |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 if (!extensions_list->empty()) { | 165 if (!extensions_list->empty()) { |
167 extension_dict->Set("commands", extensions_list.release()); | 166 extension_dict->Set("commands", extensions_list.release()); |
168 results->Append(extension_dict.release()); | 167 results->Append(extension_dict.release()); |
169 } | 168 } |
170 } | 169 } |
171 | 170 |
172 commands->Set("commands", results); | 171 commands->Set("commands", results); |
173 } | 172 } |
174 | 173 |
175 } // namespace extensions | 174 } // namespace extensions |
OLD | NEW |