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/common/extensions/extension_commands.h" | 5 #include "chrome/common/extensions/command.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
9 #include "base/string_split.h" | 9 #include "base/string_split.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/common/extensions/extension_error_utils.h" | 11 #include "chrome/common/extensions/extension_error_utils.h" |
12 #include "chrome/common/extensions/extension_manifest_constants.h" | 12 #include "chrome/common/extensions/extension_manifest_constants.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
15 | 15 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 command_description = description(); | 229 command_description = description(); |
230 } | 230 } |
231 extension_data->SetString("description", command_description); | 231 extension_data->SetString("description", command_description); |
232 extension_data->SetBoolean("active", active); | 232 extension_data->SetBoolean("active", active); |
233 extension_data->SetString("keybinding", accelerator().GetShortcutText()); | 233 extension_data->SetString("keybinding", accelerator().GetShortcutText()); |
234 | 234 |
235 return extension_data; | 235 return extension_data; |
236 } | 236 } |
237 | 237 |
238 } // namespace extensions | 238 } // namespace extensions |
OLD | NEW |