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

Unified Diff: chrome/test/data/extensions/api_test/content_scripts/permissions/background.js

Issue 1414223005: Remove URLs from chrome.tabs.executeScript permission warning. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/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.'));
}));
},

Powered by Google App Engine
This is Rietveld 408576698