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

Unified Diff: chrome/test/data/extensions/api_test/content_scripts/bypass_page_csp/a.js

Issue 11745015: Update references to the extension messaging APIs to point to the "runtime" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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/test/data/extensions/api_test/content_scripts/bypass_page_csp/a.js
diff --git a/chrome/test/data/extensions/api_test/content_scripts/bypass_page_csp/a.js b/chrome/test/data/extensions/api_test/content_scripts/bypass_page_csp/a.js
index 7d726431780bb1aac02948f9a9ab415d09dca5f0..00c706f69ad7b942b7552a38a97f406b2e4e31b6 100644
--- a/chrome/test/data/extensions/api_test/content_scripts/bypass_page_csp/a.js
+++ b/chrome/test/data/extensions/api_test/content_scripts/bypass_page_csp/a.js
@@ -5,10 +5,10 @@
// Inject an image.
var img = document.createElement('img');
img.onload = function () {
- chrome.extension.connect().postMessage(true);
+ chrome.runtime.connect().postMessage(true);
};
img.onerror = function () {
- chrome.extension.connect().postMessage(false);
+ chrome.runtime.connect().postMessage(false);
};
img.src = 'icon3.png';
document.body.appendChild(img);

Powered by Google App Engine
This is Rietveld 408576698