OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/api/plugins/plugins_handler.h" | 5 #include "chrome/common/extensions/api/plugins/plugins_handler.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
8 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
10 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "build/build_config.h" |
11 #include "chrome/grit/generated_resources.h" | 14 #include "chrome/grit/generated_resources.h" |
12 #include "extensions/common/error_utils.h" | 15 #include "extensions/common/error_utils.h" |
13 #include "extensions/common/manifest.h" | 16 #include "extensions/common/manifest.h" |
14 #include "extensions/common/manifest_constants.h" | 17 #include "extensions/common/manifest_constants.h" |
15 #include "extensions/common/manifest_handlers/permissions_parser.h" | 18 #include "extensions/common/manifest_handlers/permissions_parser.h" |
16 #include "extensions/common/permissions/api_permission.h" | 19 #include "extensions/common/permissions/api_permission.h" |
17 #include "extensions/common/permissions/api_permission_set.h" | 20 #include "extensions/common/permissions/api_permission_set.h" |
18 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
19 | 22 |
20 #if defined(OS_WIN) | 23 #if defined(OS_WIN) |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 IDS_EXTENSION_LOAD_PLUGIN_PATH_FAILED, | 142 IDS_EXTENSION_LOAD_PLUGIN_PATH_FAILED, |
140 plugin->path.LossyDisplayName()); | 143 plugin->path.LossyDisplayName()); |
141 return false; | 144 return false; |
142 } | 145 } |
143 } | 146 } |
144 } | 147 } |
145 return true; | 148 return true; |
146 } | 149 } |
147 | 150 |
148 } // namespace extensions | 151 } // namespace extensions |
OLD | NEW |