Index: chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/page.js |
diff --git a/chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/page.js b/chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/page.js |
index 64bc454521f806cf71a9d8a092e8367c4967d878..caf13f58c22d2f9d278bce1c2212f3f0f936f59f 100644 |
--- a/chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/page.js |
+++ b/chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/page.js |
@@ -7,7 +7,7 @@ if (typeof(contentWindow) != 'undefined') { |
win = contentWindow; |
} |
-chrome.extension.onConnect.addListener(function(port) { |
+chrome.runtime.onConnect.addListener(function(port) { |
console.log('connected'); |
port.onMessage.addListener(function(msg) { |
console.log('got ' + msg); |
@@ -30,7 +30,7 @@ chrome.extension.onConnect.addListener(function(port) { |
function testPostMessageFromTab(origPort) { |
console.log('testPostMessageFromTab'); |
var portName = "peter"; |
- var port = chrome.extension.connect({name: portName}); |
+ var port = chrome.runtime.connect({name: portName}); |
port.postMessage({testPostMessageFromTab: true}); |
port.onMessage.addListener(function(msg) { |
origPort.postMessage({success: (msg.success && (msg.portName == portName))}); |