diff options
4 files changed, 10 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/_permission_features.json b/chrome/common/extensions/api/_permission_features.json index 834b60a..2301b91 100644 --- a/chrome/common/extensions/api/_permission_features.json +++ b/chrome/common/extensions/api/_permission_features.json @@ -3,6 +3,11 @@ // found in the LICENSE file. { + "activeTab": { + "channel": "dev", + "extension_types": ["extension", "packaged_app"], + "min_manifest_version": 2 + }, "alarms": { "channel": "dev", "extension_types": ["extension", "packaged_app", "platform_app"], diff --git a/chrome/common/extensions/extension_permission_set.cc b/chrome/common/extensions/extension_permission_set.cc index 027e342..6718a98 100644 --- a/chrome/common/extensions/extension_permission_set.cc +++ b/chrome/common/extensions/extension_permission_set.cc @@ -213,6 +213,9 @@ void ExtensionAPIPermission::RegisterAllPermissions( // Register extension permissions. info->RegisterPermission( + kActiveTab, "activeTab", 0, + ExtensionPermissionMessage::kNone, kFlagNone); + info->RegisterPermission( kAlarms, "alarms", 0, ExtensionPermissionMessage::kNone, kFlagNone); info->RegisterPermission( diff --git a/chrome/common/extensions/extension_permission_set.h b/chrome/common/extensions/extension_permission_set.h index 10a7ee4..5e1c9cb 100644 --- a/chrome/common/extensions/extension_permission_set.h +++ b/chrome/common/extensions/extension_permission_set.h @@ -97,6 +97,7 @@ class ExtensionAPIPermission { kUnknown = -1, // Real permissions. + kActiveTab, kAlarms, kAppNotifications, kBackground, diff --git a/chrome/common/extensions/extension_permission_set_unittest.cc b/chrome/common/extensions/extension_permission_set_unittest.cc index 5e483e0..6efb43e 100644 --- a/chrome/common/extensions/extension_permission_set_unittest.cc +++ b/chrome/common/extensions/extension_permission_set_unittest.cc @@ -560,6 +560,7 @@ TEST(ExtensionPermissionsTest, PermissionMessages) { // These are considered "nuisance" or "trivial" permissions that don't need // a prompt. + skip.insert(ExtensionAPIPermission::kActiveTab); skip.insert(ExtensionAPIPermission::kAlarms); skip.insert(ExtensionAPIPermission::kAppNotifications); skip.insert(ExtensionAPIPermission::kBrowsingData); |