| 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/command.h" | 5 #include "chrome/common/extensions/command.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/strings/string_split.h" | 9 #include "base/strings/string_split.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/grit/generated_resources.h" |
| 12 #include "extensions/common/error_utils.h" | 13 #include "extensions/common/error_utils.h" |
| 13 #include "extensions/common/extension.h" | 14 #include "extensions/common/extension.h" |
| 14 #include "extensions/common/manifest_constants.h" | 15 #include "extensions/common/manifest_constants.h" |
| 15 #include "grit/generated_resources.h" | |
| 16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
| 17 | 17 |
| 18 namespace extensions { | 18 namespace extensions { |
| 19 | 19 |
| 20 namespace errors = manifest_errors; | 20 namespace errors = manifest_errors; |
| 21 namespace keys = manifest_keys; | 21 namespace keys = manifest_keys; |
| 22 namespace values = manifest_values; | 22 namespace values = manifest_values; |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 extension_data->SetBoolean("active", active); | 534 extension_data->SetBoolean("active", active); |
| 535 extension_data->SetString("keybinding", accelerator().GetShortcutText()); | 535 extension_data->SetString("keybinding", accelerator().GetShortcutText()); |
| 536 extension_data->SetString("command_name", command_name()); | 536 extension_data->SetString("command_name", command_name()); |
| 537 extension_data->SetString("extension_id", extension->id()); | 537 extension_data->SetString("extension_id", extension->id()); |
| 538 extension_data->SetBoolean("global", global()); | 538 extension_data->SetBoolean("global", global()); |
| 539 extension_data->SetBoolean("extension_action", extension_action); | 539 extension_data->SetBoolean("extension_action", extension_action); |
| 540 return extension_data; | 540 return extension_data; |
| 541 } | 541 } |
| 542 | 542 |
| 543 } // namespace extensions | 543 } // namespace extensions |
| OLD | NEW |