| Index: chrome/browser/resources/settings/prefs/prefs.js
|
| diff --git a/chrome/browser/resources/settings/prefs/prefs.js b/chrome/browser/resources/settings/prefs/prefs.js
|
| index dd09816eb61c09cdf79df585f6e54f14fbb56ef2..446c222964e20b9cc038cf069b0420a0042a7235 100644
|
| --- a/chrome/browser/resources/settings/prefs/prefs.js
|
| +++ b/chrome/browser/resources/settings/prefs/prefs.js
|
| @@ -227,11 +227,16 @@
|
| * @private
|
| */
|
| setPrefCallback_: function(key, success) {
|
| - if (success)
|
| - return;
|
| + if (!success)
|
| + this.refresh(key);
|
| + },
|
|
|
| - // Get the current pref value from chrome.settingsPrivate to ensure the
|
| - // UI stays up to date.
|
| + /**
|
| + * Get the current pref value from chrome.settingsPrivate to ensure the UI
|
| + * stays up to date.
|
| + * @param {string} key
|
| + */
|
| + refresh: function(key) {
|
| this.settingsApi_.getPref(key, function(pref) {
|
| this.updatePrefs_([pref]);
|
| }.bind(this));
|
|
|