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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Settings that affect how Chrome interacts with the underlying 6 * @fileoverview Settings that affect how Chrome interacts with the underlying
7 * operating system (i.e. network, background processes, hardware). 7 * operating system (i.e. network, background processes, hardware).
8 */ 8 */
9 9
10 Polymer({ 10 Polymer({
(...skipping 15 matching lines...) Expand all
26 var proxy = settings.SystemPageBrowserProxyImpl.getInstance(); 26 var proxy = settings.SystemPageBrowserProxyImpl.getInstance();
27 return enabled != proxy.wasHardwareAccelerationEnabledAtStartup(); 27 return enabled != proxy.wasHardwareAccelerationEnabledAtStartup();
28 }, 28 },
29 29
30 /** @private */ 30 /** @private */
31 onChangeProxySettingsTap_: function() { 31 onChangeProxySettingsTap_: function() {
32 settings.SystemPageBrowserProxyImpl.getInstance().changeProxySettings(); 32 settings.SystemPageBrowserProxyImpl.getInstance().changeProxySettings();
33 }, 33 },
34 34
35 /** @private */ 35 /** @private */
36 onExtensionDisable_: function() {
37 // TODO(dbeam): this is a pretty huge bummer. It means there are things
38 // (inputs) that our prefs system is not observing. And that changes from
39 // other sources (i.e. disabling/enabling an extension from
40 // chrome://extensions or from the omnibox directly) will not update
41 // |this.prefs.proxy| directly (nor the UI). We should fix this eventually.
42 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.
43 },
44
45 /** @private */
36 onRestartTap_: function() { 46 onRestartTap_: function() {
37 // TODO(dbeam): we should prompt before restarting the browser. 47 // TODO(dbeam): we should prompt before restarting the browser.
38 settings.LifetimeBrowserProxyImpl.getInstance().restart(); 48 settings.LifetimeBrowserProxyImpl.getInstance().restart();
39 }, 49 },
40 }); 50 });
OLDNEW
« 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