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 72b3054afa6251371ae7d1a74505a0940b1e5fd4..f969fe73030d4919b7a59994a7d7e0b49a99ae4f 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,10 +36,9 @@ |
chrome.automation.getDesktop(function(node) { |
BaseAutomationHandler.call(this, node); |
- this.addListener_(EventType.MEDIA_STARTED_PLAYING, |
- this.onMediaStartedPlaying); |
- this.addListener_(EventType.MEDIA_STOPPED_PLAYING, |
- this.onMediaStoppedPlaying); |
+ var e = EventType; |
+ this.addListener_(e.mediaStartedPlaying, this.onMediaStartedPlaying); |
+ this.addListener_(e.mediaStoppedPlaying, this.onMediaStoppedPlaying); |
}.bind(this)); |
}; |