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

Unified Diff: chrome/browser/resources/settings/settings_ui/settings_ui.js

Issue 2506323002: MD Settings: show an extension-controlled-indicator for proxy (Closed)
Patch Set: -@private Created 4 years, 1 month 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/settings/settings_ui/settings_ui.js
diff --git a/chrome/browser/resources/settings/settings_ui/settings_ui.js b/chrome/browser/resources/settings/settings_ui/settings_ui.js
index b009c069e0f49e6f7fcaf3316fd5dabd0061faa5..c035dfbae8835715e324cc6795da62618caa64c6 100644
--- a/chrome/browser/resources/settings/settings_ui/settings_ui.js
+++ b/chrome/browser/resources/settings/settings_ui/settings_ui.js
@@ -60,6 +60,10 @@ Polymer({
}
},
+ listeners: {
+ 'refresh-pref': 'onRefreshPref_',
+ },
+
/** @override */
created: function() {
settings.initializeRouteFromUrl();
@@ -144,6 +148,15 @@ Polymer({
},
/**
+ * @param {!CustomEvent} e
+ * @private
+ */
+ onRefreshPref_: function(e) {
+ var prefName = /** @type {string} */(e.detail);
+ return /** @type {SettingsPrefsElement} */(this.$.prefs).refresh(prefName);
+ },
+
+ /**
* Handles the 'search-changed' event fired from the toolbar.
* @param {!Event} e
* @private

Powered by Google App Engine
This is Rietveld 408576698