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

Unified Diff: chrome/common/extensions/permissions/chrome_permission_message_rules.cc

Issue 2950203002: Add new permission string for extensions that override new tab pages. (Closed)
Patch Set: Devlin's last feedback. Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/permissions/chrome_permission_message_rules.cc
diff --git a/chrome/common/extensions/permissions/chrome_permission_message_rules.cc b/chrome/common/extensions/permissions/chrome_permission_message_rules.cc
index 285668db23ee98a144bd6fc2917ec4c1ecd54308..94cbbc68c5d0d3198b0fa5264e43149c83ba01cb 100644
--- a/chrome/common/extensions/permissions/chrome_permission_message_rules.cc
+++ b/chrome/common/extensions/permissions/chrome_permission_message_rules.cc
@@ -378,6 +378,12 @@ ChromePermissionMessageRule::GetAllRules() {
{APIPermission::kHostReadOnly},
{}},
+ // New tab page permission is fairly highly used so rank it quite highly.
+ // Nothing should subsume it.
+ {IDS_EXTENSION_PROMPT_WARNING_NEW_TAB_PAGE_OVERRIDE,
+ {APIPermission::kNewTabPageOverride},
+ {}},
+
// History-related permission messages.
// History already allows reading favicons, tab access and accessing the
// list of most frequently visited sites.

Powered by Google App Engine
This is Rietveld 408576698