Index: chrome/renderer/resources/extensions/automation_custom_bindings.js |
diff --git a/chrome/renderer/resources/extensions/automation_custom_bindings.js b/chrome/renderer/resources/extensions/automation_custom_bindings.js |
index b63bf85c30871f797b77f79f8ad983e9d86031c0..b84d7b00a851cb31a7236afbb31e7062cc436c31 100644 |
--- a/chrome/renderer/resources/extensions/automation_custom_bindings.js |
+++ b/chrome/renderer/resources/extensions/automation_custom_bindings.js |
@@ -32,15 +32,15 @@ automation.registerCustomHook(function(bindingsAPI) { |
var apiFunctions = bindingsAPI.apiFunctions; |
// TODO(aboxhall, dtseng): Make this return the speced AutomationRootNode obj. |
- apiFunctions.setHandleRequest('getTree', function(callback) { |
- // enableCurrentTab() ensures the renderer for the current tab has |
+ apiFunctions.setHandleRequest('getTree', function getTree(tabId, callback) { |
+ // enableTab() ensures the renderer for the active or specified tab has |
// accessibility enabled, and fetches its process and routing ids to use as |
- // a key in the idToAutomationTree map. The callback to enableCurrentTab is |
+ // a key in the idToAutomationTree map. The callback to enableActiveTab is |
// bound to the callback passed in to getTree(), so that once the tree is |
// available (either due to having been cached earlier, or after an |
// accessibility event occurs which causes the tree to be populated), the |
// callback can be called. |
- automationInternal.enableCurrentTab(function(pid, rid) { |
+ automationInternal.enableTab(tabId, function onEnable(pid, rid) { |
var id = createAutomationTreeID(pid, rid); |
var targetTree = idToAutomationTree[id]; |
if (!targetTree) { |