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); |