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

Unified Diff: chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js

Issue 2684853003: MD Settings: change how tap is handled on custom toggle rows (Closed)
Patch Set: todo Created 3 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/controls/settings_checkbox.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js
diff --git a/chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js b/chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js
index d15e3eb48f89f815c66809f0a8a898369fbe38e8..248397e3f782e6efefb3e63c957bd43b129c1bc5 100644
--- a/chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js
+++ b/chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js
@@ -61,6 +61,10 @@ var SettingsBooleanControlBehaviorImpl = {
'prefValueChanged_(pref.value)',
],
+ notifyChangedByUserInteraction: function() {
+ this.fire('settings-boolean-control-change');
+ },
+
/** Reset the checked state to match the current pref value. */
resetToPrefValue: function() {
this.checked = this.getNewValue_(this.pref.value);
« no previous file with comments | « no previous file | chrome/browser/resources/settings/controls/settings_checkbox.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698