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

Unified Diff: chrome/browser/resources/options/pref_ui.js

Issue 6577029: web-ui settings: Explicitly set preferences for sans-serif font and minimum l... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | « chrome/browser/resources/options/options.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/pref_ui.js
===================================================================
--- chrome/browser/resources/options/pref_ui.js (revision 75929)
+++ chrome/browser/resources/options/pref_ui.js (working copy)
@@ -292,7 +292,8 @@
if (this.continuous)
this.setRangePref_();
- this.notifyChange(this, this.mapValueToRange_(this.value));
+ if (this.notifyChange)
+ this.notifyChange(this, this.mapValueToRange_(this.value));
},
/**
@@ -302,6 +303,9 @@
setRangePref_: function() {
Preferences.setIntegerPref(
this.pref, this.mapValueToRange_(this.value), this.metric);
+
+ if (this.notifyPrefChange)
+ this.notifyPrefChange(this, this.mapValueToRange_(this.value));
},
/**
« no previous file with comments | « chrome/browser/resources/options/options.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698