| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 | 6 * @fileoverview |
| 7 * 'settings-reset-page' is the settings page containing reset | 7 * 'settings-reset-page' is the settings page containing reset |
| 8 * settings. | 8 * settings. |
| 9 */ | 9 */ |
| 10 Polymer({ | 10 Polymer({ |
| 11 is: 'settings-powerwash-dialog', | 11 is: 'settings-powerwash-dialog', |
| 12 | 12 |
| 13 open: function() { | 13 /** @override */ |
| 14 attached: function() { |
| 14 settings.ResetBrowserProxyImpl.getInstance().onPowerwashDialogShow(); | 15 settings.ResetBrowserProxyImpl.getInstance().onPowerwashDialogShow(); |
| 15 this.$.dialog.showModal(); | 16 this.$.dialog.showModal(); |
| 16 }, | 17 }, |
| 17 | 18 |
| 18 /** @private */ | 19 /** @private */ |
| 19 onCancelTap_: function() { | 20 onCancelTap_: function() { |
| 20 this.$.dialog.close(); | 21 this.$.dialog.close(); |
| 21 }, | 22 }, |
| 22 | 23 |
| 23 /** @private */ | 24 /** @private */ |
| 24 onRestartTap_: function() { | 25 onRestartTap_: function() { |
| 25 settings.LifetimeBrowserProxyImpl.getInstance().factoryReset(); | 26 settings.LifetimeBrowserProxyImpl.getInstance().factoryReset(); |
| 26 }, | 27 }, |
| 27 }); | 28 }); |
| OLD | NEW |