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

Unified Diff: chrome/browser/resources/chromeos/switch_access/auto_scan_manager.js

Issue 2939133004: Added to options page to let users change keyboard mappings. (Closed)
Patch Set: Fixed merge conflict and formatting error Created 3 years, 6 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/switch_access/auto_scan_manager.js
diff --git a/chrome/browser/resources/chromeos/switch_access/auto_scan_manager.js b/chrome/browser/resources/chromeos/switch_access/auto_scan_manager.js
index 3e1f82088f5f5671d7f817efa3a879a6478f8c60..70e74305f78971e8c79d85e15b0333a2f32152c8 100644
--- a/chrome/browser/resources/chromeos/switch_access/auto_scan_manager.js
+++ b/chrome/browser/resources/chromeos/switch_access/auto_scan_manager.js
@@ -11,6 +11,7 @@
function AutoScanManager(switchAccess) {
/**
* SwitchAccess reference.
+ *
* @private {SwitchAccessInterface}
*/
this.switchAccess_ = switchAccess;
@@ -27,9 +28,9 @@ function AutoScanManager(switchAccess) {
*
* @private {number}
*/
- this.scanTime_ = switchAccess.switchAccessPrefs.getNumberPref('autoScanTime');
+ this.scanTime_ = switchAccess.getNumberPref('autoScanTime');
- let enabled = switchAccess.switchAccessPrefs.getBooleanPref('enableAutoScan');
+ let enabled = switchAccess.getBooleanPref('enableAutoScan');
if (enabled)
this.start_();
}

Powered by Google App Engine
This is Rietveld 408576698