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

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

Issue 945743003: Improve error message for failing code insertion on about:-URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 "not been in invoked."; 243 "not been in invoked.";
244 const char kAllURLOrActiveTabNeeded[] = 244 const char kAllURLOrActiveTabNeeded[] =
245 "Either the '<all_urls>' or 'activeTab' permission is required."; 245 "Either the '<all_urls>' or 'activeTab' permission is required.";
246 const char kAppsNotEnabled[] = 246 const char kAppsNotEnabled[] =
247 "Apps are not enabled."; 247 "Apps are not enabled.";
248 const char kBackgroundPermissionNeeded[] = 248 const char kBackgroundPermissionNeeded[] =
249 "Hosted apps that use 'background_page' must have the 'background' " 249 "Hosted apps that use 'background_page' must have the 'background' "
250 "permission."; 250 "permission.";
251 const char kBackgroundRequiredForPlatformApps[] = 251 const char kBackgroundRequiredForPlatformApps[] =
252 "Packaged apps must have a background page or background scripts."; 252 "Packaged apps must have a background page or background scripts.";
253 const char kCannotAccessAboutUrl[] =
254 "Cannot access contents of url \"*\". Extension must have permission to "
255 "access the frame's origin, and matchAboutBlank must be true.";
not at google - send to devlin 2015/02/23 18:28:34 Should this be "parent frame's origin" rather than
robwu 2015/02/23 23:29:12 Done.
253 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL"; 256 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL";
254 const char kCannotAccessExtensionUrl[] = 257 const char kCannotAccessExtensionUrl[] =
255 "Cannot access a chrome-extension:// URL of different extension"; 258 "Cannot access a chrome-extension:// URL of different extension";
256 const char kCannotAccessPage[] = 259 const char kCannotAccessPage[] =
257 "Cannot access contents of url \"*\". " 260 "Cannot access contents of url \"*\". "
258 "Extension manifest must request permission to access this host."; 261 "Extension manifest must request permission to access this host.";
259 const char kCannotChangeExtensionID[] = 262 const char kCannotChangeExtensionID[] =
260 "Installed extensions cannot change their IDs."; 263 "Installed extensions cannot change their IDs.";
261 const char kCannotClaimAllHostsInExtent[] = 264 const char kCannotClaimAllHostsInExtent[] =
262 "Cannot claim all hosts ('*') in an extent."; 265 "Cannot claim all hosts ('*') in an extent.";
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 const char kWebRequestConflictsWithLazyBackground[] = 693 const char kWebRequestConflictsWithLazyBackground[] =
691 "The 'webRequest' API cannot be used with event pages."; 694 "The 'webRequest' API cannot be used with event pages.";
692 #if defined(OS_CHROMEOS) 695 #if defined(OS_CHROMEOS)
693 const char kIllegalPlugins[] = 696 const char kIllegalPlugins[] =
694 "Extensions cannot install plugins on Chrome OS"; 697 "Extensions cannot install plugins on Chrome OS";
695 #endif 698 #endif
696 699
697 } // namespace manifest_errors 700 } // namespace manifest_errors
698 701
699 } // namespace extensions 702 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/manifest_constants.h ('k') | extensions/renderer/programmatic_script_injector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698