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

Side by Side Diff: chrome/test/data/extensions/api_test/connect_external/connect.html

Issue 262016: Implement chrome.extension.connectExternal and fix various API inconsistencies. (Closed)
Patch Set: addressed comments Created 11 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 <script>
2 var testId = "bjafgdebaacbbbecmhlhpofkepfkgcpa";
3
4 function testConnectExternal() {
5 var port = chrome.extension.connect(testId, {name: "extern"});
6 port.postMessage({testConnectExternal: true});
7 port.onMessage.addListener(function(msg) {
8 var success = msg.success && msg.senderId == location.host;
9 window.domAutomationController.send(success);
10 port.disconnect();
11 });
12 }
13 </script>
OLDNEW
« no previous file with comments | « chrome/renderer/user_script_slave.cc ('k') | chrome/test/data/extensions/api_test/connect_external/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698