Index: chrome/renderer/resources/extensions/tabs_custom_bindings.js |
diff --git a/chrome/renderer/resources/extensions/tabs_custom_bindings.js b/chrome/renderer/resources/extensions/tabs_custom_bindings.js |
index cf1061d9d8697715b2f33667c090df6e7757a924..dd664817c28fed5a743ec9f1557a7d6a2b277d21 100644 |
--- a/chrome/renderer/resources/extensions/tabs_custom_bindings.js |
+++ b/chrome/renderer/resources/extensions/tabs_custom_bindings.js |
@@ -43,25 +43,6 @@ chromeHidden.registerCustomHook('tabs', function(bindingsAPI, extensionId) { |
} |
}); |
}); |
- |
- // TODO(skerner,mtytel): The next step to omitting optional arguments is the |
- // replacement of this code with code that matches arguments by type. |
- // Once this is working for captureVisibleTab() it can be enabled for |
- // the rest of the API. See crbug/29215 . |
- apiFunctions.setUpdateArgumentsPreValidate('captureVisibleTab', function() { |
- // Old signature: |
- // captureVisibleTab(int windowId, function callback); |
- // New signature: |
- // captureVisibleTab(int windowId, object details, function callback); |
- var newArgs; |
- if (arguments.length == 2 && typeof(arguments[1]) == 'function') { |
- // If the old signature is used, add a null details object. |
- newArgs = [arguments[0], null, arguments[1]]; |
- } else { |
- newArgs = arguments; |
- } |
- return newArgs; |
- }); |
}); |
})(); |