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 "extensions/common/manifest_constants.h" | 5 #include "extensions/common/manifest_constants.h" |
6 | 6 |
7 namespace extensions { | 7 namespace extensions { |
8 | 8 |
9 namespace manifest_keys { | 9 namespace manifest_keys { |
10 | 10 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 const char kLaunchContainerWindow[] = "window"; | 212 const char kLaunchContainerWindow[] = "window"; |
213 | 213 |
214 } // namespace manifest_values | 214 } // namespace manifest_values |
215 | 215 |
216 // Extension-related error messages. Some of these are simple patterns, where a | 216 // Extension-related error messages. Some of these are simple patterns, where a |
217 // '*' is replaced at runtime with a specific value. This is used instead of | 217 // '*' is replaced at runtime with a specific value. This is used instead of |
218 // printf because we want to unit test them and scanf is hard to make | 218 // printf because we want to unit test them and scanf is hard to make |
219 // cross-platform. | 219 // cross-platform. |
220 namespace manifest_errors { | 220 namespace manifest_errors { |
221 | 221 |
| 222 const char kAllURLOrActiveTabNeeded[] = |
| 223 "This extension needs at least one of '<all_urls>' and 'activeTab' " |
| 224 "permissions."; |
222 const char kAppsNotEnabled[] = | 225 const char kAppsNotEnabled[] = |
223 "Apps are not enabled."; | 226 "Apps are not enabled."; |
224 const char kBackgroundPermissionNeeded[] = | 227 const char kBackgroundPermissionNeeded[] = |
225 "Hosted apps that use 'background_page' must have the 'background' " | 228 "Hosted apps that use 'background_page' must have the 'background' " |
226 "permission."; | 229 "permission."; |
227 const char kBackgroundRequiredForPlatformApps[] = | 230 const char kBackgroundRequiredForPlatformApps[] = |
228 "Packaged apps must have a background page or background scripts."; | 231 "Packaged apps must have a background page or background scripts."; |
229 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL"; | 232 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL"; |
230 const char kCannotAccessExtensionUrl[] = | 233 const char kCannotAccessExtensionUrl[] = |
231 "Cannot access a chrome-extension:// URL of different extension"; | 234 "Cannot access a chrome-extension:// URL of different extension"; |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 const char kWebRequestConflictsWithLazyBackground[] = | 690 const char kWebRequestConflictsWithLazyBackground[] = |
688 "The 'webRequest' API cannot be used with event pages."; | 691 "The 'webRequest' API cannot be used with event pages."; |
689 #if defined(OS_CHROMEOS) | 692 #if defined(OS_CHROMEOS) |
690 const char kIllegalPlugins[] = | 693 const char kIllegalPlugins[] = |
691 "Extensions cannot install plugins on Chrome OS"; | 694 "Extensions cannot install plugins on Chrome OS"; |
692 #endif | 695 #endif |
693 | 696 |
694 } // namespace manifest_errors | 697 } // namespace manifest_errors |
695 | 698 |
696 } // namespace extensions | 699 } // namespace extensions |
OLD | NEW |