Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3167)

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/media_automation_handler.js

Issue 2650733002: Revert of Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
};

Powered by Google App Engine
This is Rietveld 408576698