Index: chrome/browser/resources/options/hotword_confirm_dialog.js |
diff --git a/chrome/browser/resources/options/hotword_confirm_dialog.js b/chrome/browser/resources/options/hotword_confirm_dialog.js |
index 840539409dae6372a211e9c1ed55c3f11cffa63b..e81a62fc59a9541b56249409155bdfd9bc09582d 100644 |
--- a/chrome/browser/resources/options/hotword_confirm_dialog.js |
+++ b/chrome/browser/resources/options/hotword_confirm_dialog.js |
@@ -49,12 +49,12 @@ cr.define('options', function() { |
return; |
if (event.value.value && !this.confirmed_) { |
- if (!this.indicator.errorText) { |
- PageManager.showPageByName(this.name, false); |
- } else { |
+ // If there is an error, show the indicator icon with more information. |
+ if (this.indicator.errorText) |
this.indicator.updateBasedOnError(); |
- this.handleCancel(); |
- } |
+ |
+ // Show confirmation dialog (regardless of whether there is an error). |
+ PageManager.showPageByName(this.name, false); |
} else { |
Preferences.getInstance().commitPref(this.pref, this.metric); |
} |