| Index: chrome/test/data/extensions/api_test/permissions/optional/background.js
|
| diff --git a/chrome/test/data/extensions/api_test/permissions/optional/background.js b/chrome/test/data/extensions/api_test/permissions/optional/background.js
|
| index 8e3d1836c70bd2304f69ab6f770cf5a7449323f9..e904231c31fac4c0acd9f4b2c15b061afd9891a1 100644
|
| --- a/chrome/test/data/extensions/api_test/permissions/optional/background.js
|
| +++ b/chrome/test/data/extensions/api_test/permissions/optional/background.js
|
| @@ -155,6 +155,16 @@ chrome.test.getConfig(function(config) {
|
| }));
|
| },
|
|
|
| + // These permissions should be on the granted list because they're on the
|
| + // extension's default permission list.
|
| + function requestGrantedPermission() {
|
| + chrome.permissions.request(
|
| + {permissions: ['management'], origins: ['http://a.com/*']},
|
| + pass(function(granted) {
|
| + assertTrue(granted);
|
| + }));
|
| + },
|
| +
|
| // You can't remove required permissions.
|
| function removeRequired() {
|
| chrome.permissions.remove(
|
| @@ -304,7 +314,7 @@ chrome.test.getConfig(function(config) {
|
| });
|
|
|
| chrome.permissions.request(
|
| - {permissions: ['tabs']}, pass(function(granted) {
|
| + {permissions: ['tabs', 'management']}, pass(function(granted) {
|
| assertTrue(granted);
|
| chrome.permissions.remove(
|
| {permissions: ['tabs']}, pass(function() {
|
|
|