| OLD | NEW |
| 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 Loading... |
| 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 this.fire('refresh-pref', 'proxy'); |
| 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 }); |
| OLD | NEW |