Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: extensions/common/manifest_constants.cc

Issue 141743005: Extensions: Make it possible for permission parsing code to return a detailed error message. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « extensions/common/manifest_constants.h ('k') | extensions/common/permissions/api_permission.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 const char kInvalidPageActionPopup[] = 515 const char kInvalidPageActionPopup[] =
516 "Invalid type for page action popup."; 516 "Invalid type for page action popup.";
517 const char kInvalidPageActionPopupPath[] = 517 const char kInvalidPageActionPopupPath[] =
518 "Invalid value for page action popup path [*]."; 518 "Invalid value for page action popup path [*].";
519 const char kInvalidPageActionsList[] = 519 const char kInvalidPageActionsList[] =
520 "Invalid value for 'page_actions'."; 520 "Invalid value for 'page_actions'.";
521 const char kInvalidPageActionsListSize[] = 521 const char kInvalidPageActionsListSize[] =
522 "Invalid value for 'page_actions'. There can be at most one page action."; 522 "Invalid value for 'page_actions'. There can be at most one page action.";
523 const char kInvalidPageActionTypeValue[] = 523 const char kInvalidPageActionTypeValue[] =
524 "Invalid value for 'page_actions[*].type', expected 'tab' or 'permanent'."; 524 "Invalid value for 'page_actions[*].type', expected 'tab' or 'permanent'.";
525 const char kInvalidPermissionWithDetail[] =
526 "Invalid value for 'permissions[*]': *.";
525 const char kInvalidPermission[] = 527 const char kInvalidPermission[] =
526 "Invalid value for 'permissions[*]'."; 528 "Invalid value for 'permissions[*]'.";
527 const char kInvalidPermissions[] = 529 const char kInvalidPermissions[] =
528 "Invalid value for 'permissions'."; 530 "Invalid value for 'permissions'.";
529 const char kInvalidPermissionScheme[] = 531 const char kInvalidPermissionScheme[] =
530 "Invalid scheme for 'permissions[*]'."; 532 "Invalid scheme for 'permissions[*]'.";
531 const char kInvalidPlugins[] = 533 const char kInvalidPlugins[] =
532 "Invalid value for 'plugins'."; 534 "Invalid value for 'plugins'.";
533 const char kInvalidPluginsPath[] = 535 const char kInvalidPluginsPath[] =
534 "Invalid value for 'plugins[*].path'."; 536 "Invalid value for 'plugins[*].path'.";
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 const char kWebRequestConflictsWithLazyBackground[] = 698 const char kWebRequestConflictsWithLazyBackground[] =
697 "The 'webRequest' API cannot be used with event pages."; 699 "The 'webRequest' API cannot be used with event pages.";
698 #if defined(OS_CHROMEOS) 700 #if defined(OS_CHROMEOS)
699 const char kIllegalPlugins[] = 701 const char kIllegalPlugins[] =
700 "Extensions cannot install plugins on Chrome OS"; 702 "Extensions cannot install plugins on Chrome OS";
701 #endif 703 #endif
702 704
703 } // namespace manifest_errors 705 } // namespace manifest_errors
704 706
705 } // namespace extensions 707 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/manifest_constants.h ('k') | extensions/common/permissions/api_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698