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

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

Issue 2793073002: Added unit tests for auto_scan_manager. Created switch access test target. (Closed)
Patch Set: Responded to comments Created 3 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/switch_access/switch_access.js
diff --git a/chrome/browser/resources/chromeos/switch_access/switch_access.js b/chrome/browser/resources/chromeos/switch_access/switch_access.js
index 57ad0f32bebbe7557f19b984730d1ea91ad156b1..0adc858c037bb505fb6a7ae3de1ee80a169dfce8 100644
--- a/chrome/browser/resources/chromeos/switch_access/switch_access.js
+++ b/chrome/browser/resources/chromeos/switch_access/switch_access.js
@@ -135,8 +135,7 @@ SwitchAccess.prototype = {
* @override
*/
performedUserAction: function() {
- if (this.autoScanManager_.isRunning())
- this.autoScanManager_.restart();
+ this.autoScanManager_.restartIfRunning();
},
/**

Powered by Google App Engine
This is Rietveld 408576698