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

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

Issue 328013002: Add identity.email permission for apps and extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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_api_permissions.cc
diff --git a/chrome/common/extensions/permissions/chrome_api_permissions.cc b/chrome/common/extensions/permissions/chrome_api_permissions.cc
index 330ee12ad971a98ed2b425ddf776b5a6b592f376..f442e56d40fde8b89f28a4c97e6af97165d6277b 100644
--- a/chrome/common/extensions/permissions/chrome_api_permissions.cc
+++ b/chrome/common/extensions/permissions/chrome_api_permissions.cc
@@ -56,6 +56,10 @@ std::vector<APIPermissionInfo*> ChromeAPIPermissions::GetAllPermissions()
PermissionMessage::kDownloadsOpen},
{APIPermission::kDownloadsShelf, "downloads.shelf"},
{APIPermission::kIdentity, "identity"},
+ {APIPermission::kIdentityEmail, "identity.email",
+ APIPermissionInfo::kFlagNone,
+ IDS_EXTENSION_PROMPT_WARNING_IDENTITY_EMAIL,
+ PermissionMessage::kIdentityEmail},
{APIPermission::kExperimental, "experimental",
APIPermissionInfo::kFlagCannotBeOptional},
// NOTE(kalman): this is provided by a manifest property but needs to
« no previous file with comments | « chrome/common/extensions/api/_permission_features.json ('k') | extensions/common/permissions/api_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698