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

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

Issue 1942683005: Refactor event handler classes to make it easier to add new event type listeners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/chromevox/background/background.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js b/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
index 1f1fbfb5ca20b0f8ddba45055371b14adcdadd19..c638a802688b36dd2ebbe98330252a1ddeef1252 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
@@ -160,8 +160,7 @@ cvox.ChromeVoxBackground.prototype.init = function() {
if (!cvox.ChromeVox.earcons)
cvox.ChromeVox.earcons = new cvox.ClassicEarcons();
- if (cvox.ChromeVox.isChromeOS &&
- chrome.accessibilityPrivate.onIntroduceChromeVox) {
+ if (cvox.ChromeVox.isChromeOS) {
chrome.accessibilityPrivate.onIntroduceChromeVox.addListener(
this.onIntroduceChromeVox);
}

Powered by Google App Engine
This is Rietveld 408576698