Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/media_automation_handler.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/media_automation_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/media_automation_handler.js |
index f969fe73030d4919b7a59994a7d7e0b49a99ae4f..72b3054afa6251371ae7d1a74505a0940b1e5fd4 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/media_automation_handler.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/media_automation_handler.js |
@@ -36,9 +36,10 @@ MediaAutomationHandler = function() { |
chrome.automation.getDesktop(function(node) { |
BaseAutomationHandler.call(this, node); |
- var e = EventType; |
- this.addListener_(e.mediaStartedPlaying, this.onMediaStartedPlaying); |
- this.addListener_(e.mediaStoppedPlaying, this.onMediaStoppedPlaying); |
+ this.addListener_(EventType.MEDIA_STARTED_PLAYING, |
+ this.onMediaStartedPlaying); |
+ this.addListener_(EventType.MEDIA_STOPPED_PLAYING, |
+ this.onMediaStoppedPlaying); |
}.bind(this)); |
}; |