Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_object_constructor_installer.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_object_constructor_installer.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_object_constructor_installer.js |
index cdb5e93ec187fee0a9f273fb3740da6a3672e90a..de18ba92835a97a99119e1abe76ccbfe833f4c0f 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_object_constructor_installer.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_object_constructor_installer.js |
@@ -22,13 +22,13 @@ AutomationObjectConstructorInstaller.init = function(node, callback) { |
chrome.automation.AutomationNode = |
/** @type {function (new:chrome.automation.AutomationNode)} */( |
node.constructor); |
- node.addEventListener(chrome.automation.EventType.childrenChanged, |
+ node.addEventListener(chrome.automation.EventType.CHILDREN_CHANGED, |
function installAutomationEvent(e) { |
chrome.automation.AutomationEvent = |
/** @type {function (new:chrome.automation.AutomationEvent)} */( |
e.constructor); |
node.removeEventListener( |
- chrome.automation.EventType.childrenChanged, |
+ chrome.automation.EventType.CHILDREN_CHANGED, |
installAutomationEvent, |
true); |
callback(); |