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

Unified Diff: chrome/common/extensions/permissions/chrome_permission_message_provider.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_provider.cc
diff --git a/chrome/common/extensions/permissions/chrome_permission_message_provider.cc b/chrome/common/extensions/permissions/chrome_permission_message_provider.cc
index d0afe3b48e94fab4add79084513a43864ea51156..50175df33d4a599ba2a73e2440c2b95ff2ae874e 100644
--- a/chrome/common/extensions/permissions/chrome_permission_message_provider.cc
+++ b/chrome/common/extensions/permissions/chrome_permission_message_provider.cc
@@ -195,6 +195,12 @@ bool ChromePermissionMessageProvider::IsAPIOrManifestPrivilegeIncrease(
DropPermissionParameter(id, &new_ids);
}
+ // For M62, we added a new permission ID for new tab page overrides. Consider
+ // the addition of this permission to not result in a privilege increase for
+ // the time being.
+ // TODO(robertshield): Remove this once most of the population is on M62+
+ new_ids.erase(APIPermission::kNewTabPageOverride);
+
// If all the IDs were already there, it's not a privilege increase.
if (old_ids.Includes(new_ids))
return false;

Powered by Google App Engine
This is Rietveld 408576698