OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/manifest_handlers/ui_overrides_handler.h" | 5 #include "chrome/common/extensions/manifest_handlers/ui_overrides_handler.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/grit/generated_resources.h" |
11 #include "extensions/common/error_utils.h" | 12 #include "extensions/common/error_utils.h" |
12 #include "extensions/common/extension_messages.h" | 13 #include "extensions/common/extension_messages.h" |
13 #include "extensions/common/feature_switch.h" | 14 #include "extensions/common/feature_switch.h" |
14 #include "extensions/common/manifest_constants.h" | 15 #include "extensions/common/manifest_constants.h" |
15 #include "extensions/common/permissions/manifest_permission.h" | 16 #include "extensions/common/permissions/manifest_permission.h" |
16 #include "extensions/common/permissions/permissions_data.h" | 17 #include "extensions/common/permissions/permissions_data.h" |
17 #include "extensions/common/permissions/permissions_info.h" | 18 #include "extensions/common/permissions/permissions_info.h" |
18 #include "grit/generated_resources.h" | |
19 #include "ipc/ipc_message.h" | 19 #include "ipc/ipc_message.h" |
20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
21 | 21 |
22 using extensions::api::manifest_types::ChromeUIOverrides; | 22 using extensions::api::manifest_types::ChromeUIOverrides; |
23 | 23 |
24 namespace extensions { | 24 namespace extensions { |
25 | 25 |
26 // The manifest permission implementation supports a permission for overriding | 26 // The manifest permission implementation supports a permission for overriding |
27 // the bookmark UI. | 27 // the bookmark UI. |
28 class UIOverridesHandler::ManifestPermissionImpl : public ManifestPermission { | 28 class UIOverridesHandler::ManifestPermissionImpl : public ManifestPermission { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 const UIOverrides* data = UIOverrides::Get(extension); | 180 const UIOverrides* data = UIOverrides::Get(extension); |
181 if (data) | 181 if (data) |
182 return data->manifest_permission->Clone(); | 182 return data->manifest_permission->Clone(); |
183 return NULL; | 183 return NULL; |
184 } | 184 } |
185 const std::vector<std::string> UIOverridesHandler::Keys() const { | 185 const std::vector<std::string> UIOverridesHandler::Keys() const { |
186 return SingleKey(manifest_keys::kUIOverride); | 186 return SingleKey(manifest_keys::kUIOverride); |
187 } | 187 } |
188 | 188 |
189 } // namespace extensions | 189 } // namespace extensions |
OLD | NEW |