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

Unified Diff: chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/page.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/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))});

Powered by Google App Engine
This is Rietveld 408576698