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

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

Issue 1414223005: Remove URLs from chrome.tabs.executeScript permission warning. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 "Hosted apps that use 'background_page' must have the 'background' " 255 "Hosted apps that use 'background_page' must have the 'background' "
256 "permission."; 256 "permission.";
257 const char kBackgroundRequiredForPlatformApps[] = 257 const char kBackgroundRequiredForPlatformApps[] =
258 "Packaged apps must have a background page or background scripts."; 258 "Packaged apps must have a background page or background scripts.";
259 const char kCannotAccessAboutUrl[] = 259 const char kCannotAccessAboutUrl[] =
260 "Cannot access \"*\" at origin \"*\". Extension must have permission to " 260 "Cannot access \"*\" at origin \"*\". Extension must have permission to "
261 "access the frame's origin, and matchAboutBlank must be true."; 261 "access the frame's origin, and matchAboutBlank must be true.";
262 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL"; 262 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL";
263 const char kCannotAccessExtensionUrl[] = 263 const char kCannotAccessExtensionUrl[] =
264 "Cannot access a chrome-extension:// URL of different extension"; 264 "Cannot access a chrome-extension:// URL of different extension";
265 // This deliberately does not contain a URL. Otherwise an extension can parse
266 // error messages and determine the URLs of open tabs without having appropriate
267 // permissions to see these URLs.
265 const char kCannotAccessPage[] = 268 const char kCannotAccessPage[] =
266 "Cannot access contents of url \"*\". " 269 "Cannot access contents of a page. "
Devlin 2015/11/06 20:00:39 Hmm... I might prefer to have two error messages h
battre 2015/11/06 21:44:17 For PermissionsData::CanRunOnPage() that should be
Devlin 2015/11/06 22:06:13 Ah, right, I forgot how much of a rat's nest the i
battre 2015/11/11 13:31:17 I have added a TODO. This is a slightly bigger und
Devlin 2015/11/11 16:50:47 Okay, TODO is fine with me.
267 "Extension manifest must request permission to access this host."; 270 "Extension manifest must request permission to access the respective host.";
268 const char kCannotChangeExtensionID[] = 271 const char kCannotChangeExtensionID[] =
269 "Installed extensions cannot change their IDs."; 272 "Installed extensions cannot change their IDs.";
270 const char kCannotClaimAllHostsInExtent[] = 273 const char kCannotClaimAllHostsInExtent[] =
271 "Cannot claim all hosts ('*') in an extent."; 274 "Cannot claim all hosts ('*') in an extent.";
272 const char kCannotClaimAllURLsInExtent[] = 275 const char kCannotClaimAllURLsInExtent[] =
273 "Cannot claim all URLs in an extent."; 276 "Cannot claim all URLs in an extent.";
274 const char kCannotScriptGallery[] = 277 const char kCannotScriptGallery[] =
275 "The extensions gallery cannot be scripted."; 278 "The extensions gallery cannot be scripted.";
276 const char kCannotScriptSigninPage[] = 279 const char kCannotScriptSigninPage[] =
277 "The sign-in page cannot be scripted."; 280 "The sign-in page cannot be scripted.";
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 "'file_system_provider_capabilities' section to be specified in the " 722 "'file_system_provider_capabilities' section to be specified in the "
720 "manifest."; 723 "manifest.";
721 const char kInvalidFileSystemProviderMissingPermission[] = 724 const char kInvalidFileSystemProviderMissingPermission[] =
722 "The 'file_system_provider_capabilities' section requires the " 725 "The 'file_system_provider_capabilities' section requires the "
723 "'fileSystemProvider' permission to be specified in the manifest."; 726 "'fileSystemProvider' permission to be specified in the manifest.";
724 #endif 727 #endif
725 728
726 } // namespace manifest_errors 729 } // namespace manifest_errors
727 730
728 } // namespace extensions 731 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698