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

Side by Side Diff: chrome/test/data/extensions/api_test/connect/page.js

Issue 341025: Change the extension.onRequest even to include the sender info. (Closed)
Patch Set: fix args Created 11 years, 1 month 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
1 // For test onRequest. 1 // For test onRequest.
2 chrome.extension.sendRequest({step: 1}, function(response) { 2 chrome.extension.sendRequest({step: 1}, function(response) {
3 if (response.nextStep) 3 if (response.nextStep)
4 chrome.extension.sendRequest({step: 2}); 4 chrome.extension.sendRequest({step: 2});
5 }); 5 });
6 6
7 // For test sendRequest. 7 // For test sendRequest.
8 chrome.extension.onRequest.addListener(function(request, sendResponse) { 8 chrome.extension.onRequest.addListener(function(request, sender, sendResponse) {
9 sendResponse({success: (request.step2 == 1)}); 9 sendResponse({success: (request.step2 == 1)});
10 }); 10 });
OLDNEW
« no previous file with comments | « chrome/renderer/resources/renderer_extension_bindings.js ('k') | chrome/test/data/extensions/api_test/connect/test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698