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

Unified Diff: chrome/renderer/resources/extensions/experimental.socket_custom_bindings.js

Issue 10134008: Add bind(), recvFrom(), sendTo() for UDP socket. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Reenable api tests Created 8 years, 8 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/renderer/resources/extensions/experimental.socket_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/experimental.socket_custom_bindings.js b/chrome/renderer/resources/extensions/experimental.socket_custom_bindings.js
index 40011b249d2454b2d92a8775b65ad9a3d3742205..80f016b68f6bb99b91dcab1097ce2cf2989c327e 100644
--- a/chrome/renderer/resources/extensions/experimental.socket_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/experimental.socket_custom_bindings.js
@@ -16,10 +16,10 @@
apiFunctions.setHandleRequest('create', function() {
var args = arguments;
- if (args.length > 3 && args[3] && args[3].onEvent) {
+ if (args.length > 1 && args[1] && args[1].onEvent) {
var id = GetNextSocketEventId();
- args[3].srcId = id;
- chromeHidden.socket.handlers[id] = args[3].onEvent;
+ args[1].srcId = id;
+ chromeHidden.socket.handlers[id] = args[1].onEvent;
// Keep the page alive until the event finishes.
// Balanced in eventHandler.

Powered by Google App Engine
This is Rietveld 408576698