| Index: chrome/test/data/extensions/api_test/content_scripts/permissions/background.js
|
| diff --git a/chrome/test/data/extensions/api_test/content_scripts/permissions/background.js b/chrome/test/data/extensions/api_test/content_scripts/permissions/background.js
|
| index fdd1278519c66cc41cd81b1089e462a0a22f3690..7bb730966fd48693656debcfdd11304d2004bf10 100644
|
| --- a/chrome/test/data/extensions/api_test/content_scripts/permissions/background.js
|
| +++ b/chrome/test/data/extensions/api_test/content_scripts/permissions/background.js
|
| @@ -16,11 +16,6 @@ function testUrl(domain) {
|
| '/extensions/test_file.html';
|
| }
|
|
|
| -function error(domain) {
|
| - return 'Cannot access contents of url "' + testUrl(domain) + '".' +
|
| - ' Extension manifest must request permission to access this host.';
|
| -}
|
| -
|
| // Creates a new tab, navigated to the specified |domain|.
|
| function createTestTab(domain, callback) {
|
| var createdTabId = -1;
|
| @@ -49,7 +44,9 @@ chrome.test.getConfig(function(config) {
|
| testTabId = tab.id;
|
| chrome.tabs.executeScript(
|
| tab.id, {code: 'document.title = "success"'},
|
| - callbackFail(error('a.com')));
|
| + callbackFail('Cannot access contents of a page. ' +
|
| + 'Extension manifest must request permission to access ' +
|
| + 'the respective host.'));
|
| }));
|
| },
|
|
|
|
|