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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
213 const char kLaunchContainerWindow[] = "window"; | 213 const char kLaunchContainerWindow[] = "window"; |
214 | 214 |
215 } // namespace manifest_values | 215 } // namespace manifest_values |
216 | 216 |
217 // Extension-related error messages. Some of these are simple patterns, where a | 217 // Extension-related error messages. Some of these are simple patterns, where a |
218 // '*' is replaced at runtime with a specific value. This is used instead of | 218 // '*' is replaced at runtime with a specific value. This is used instead of |
219 // printf because we want to unit test them and scanf is hard to make | 219 // printf because we want to unit test them and scanf is hard to make |
220 // cross-platform. | 220 // cross-platform. |
221 namespace manifest_errors { | 221 namespace manifest_errors { |
222 | 222 |
223 const char kActiveTabPermissionNotGranted[] = | |
224 "This extension has the 'activeTab' permission, however it has not been " | |
225 "granted that permission by the user for the current tab."; | |
not at google - send to devlin
2014/01/21 21:44:21
The terminology we've been using for "active tab g
sadrul
2014/01/23 20:11:14
Done.
| |
226 | |
227 const char kAllURLOrActiveTabNeeded[] = | |
228 "This extension needs at least one of '<all_urls>' and 'activeTab' " | |
not at google - send to devlin
2014/01/21 21:44:21
Juts "Either the '<all_urls>' or 'activeTab' permi
sadrul
2014/01/23 20:11:14
Done.
| |
229 "permissions."; | |
223 const char kAppsNotEnabled[] = | 230 const char kAppsNotEnabled[] = |
224 "Apps are not enabled."; | 231 "Apps are not enabled."; |
225 const char kBackgroundPermissionNeeded[] = | 232 const char kBackgroundPermissionNeeded[] = |
226 "Hosted apps that use 'background_page' must have the 'background' " | 233 "Hosted apps that use 'background_page' must have the 'background' " |
227 "permission."; | 234 "permission."; |
228 const char kBackgroundRequiredForPlatformApps[] = | 235 const char kBackgroundRequiredForPlatformApps[] = |
229 "Packaged apps must have a background page or background scripts."; | 236 "Packaged apps must have a background page or background scripts."; |
230 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL"; | 237 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL"; |
231 const char kCannotAccessExtensionUrl[] = | 238 const char kCannotAccessExtensionUrl[] = |
232 "Cannot access a chrome-extension:// URL of different extension"; | 239 "Cannot access a chrome-extension:// URL of different extension"; |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
688 const char kWebRequestConflictsWithLazyBackground[] = | 695 const char kWebRequestConflictsWithLazyBackground[] = |
689 "The 'webRequest' API cannot be used with event pages."; | 696 "The 'webRequest' API cannot be used with event pages."; |
690 #if defined(OS_CHROMEOS) | 697 #if defined(OS_CHROMEOS) |
691 const char kIllegalPlugins[] = | 698 const char kIllegalPlugins[] = |
692 "Extensions cannot install plugins on Chrome OS"; | 699 "Extensions cannot install plugins on Chrome OS"; |
693 #endif | 700 #endif |
694 | 701 |
695 } // namespace manifest_errors | 702 } // namespace manifest_errors |
696 | 703 |
697 } // namespace extensions | 704 } // namespace extensions |
OLD | NEW |