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

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

Issue 2506323002: MD Settings: show an extension-controlled-indicator for proxy (Closed)
Patch Set: 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
« no previous file with comments | « chrome/browser/resources/settings/system_page/system_page.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/settings/system_page/system_page.js
diff --git a/chrome/browser/resources/settings/system_page/system_page.js b/chrome/browser/resources/settings/system_page/system_page.js
index 8656b29abab66238a917a17cd3e5a090711ce377..29d2f58a4a1b0e9f94924590f3fbfbcf1a612e61 100644
--- a/chrome/browser/resources/settings/system_page/system_page.js
+++ b/chrome/browser/resources/settings/system_page/system_page.js
@@ -33,6 +33,16 @@ Polymer({
},
/** @private */
+ onExtensionDisable_: function() {
+ // TODO(dbeam): this is a pretty huge bummer. It means there are things
+ // (inputs) that our prefs system is not observing. And that changes from
+ // other sources (i.e. disabling/enabling an extension from
+ // chrome://extensions or from the omnibox directly) will not update
+ // |this.prefs.proxy| directly (nor the UI). We should fix this eventually.
+ document.querySelector('settings-ui').getPrefsElement().refresh('proxy');
dpapad 2016/11/17 18:36:34 With this selector system_page assumes that a sett
Dan Beam 2016/11/17 19:12:25 that's a good idea
Dan Beam 2016/11/17 22:10:38 Done.
+ },
+
+ /** @private */
onRestartTap_: function() {
// TODO(dbeam): we should prompt before restarting the browser.
settings.LifetimeBrowserProxyImpl.getInstance().restart();
« no previous file with comments | « chrome/browser/resources/settings/system_page/system_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698