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 open: function() { |
14 settings.ResetBrowserProxyImpl.getInstance().onPowerwashDialogShow(); | 14 settings.ResetBrowserProxyImpl.getInstance().onPowerwashDialogShow(); |
15 this.$.dialog.open(); | 15 this.$.dialog.showModal(); |
16 }, | 16 }, |
17 | 17 |
18 /** @private */ | 18 /** @private */ |
19 onCancelTap_: function() { | 19 onCancelTap_: function() { |
20 this.$.dialog.close(); | 20 this.$.dialog.close(); |
21 }, | 21 }, |
22 | 22 |
23 /** @private */ | 23 /** @private */ |
24 onRestartTap_: function() { | 24 onRestartTap_: function() { |
25 settings.LifetimeBrowserProxyImpl.getInstance().factoryReset(); | 25 settings.LifetimeBrowserProxyImpl.getInstance().factoryReset(); |
26 }, | 26 }, |
27 }); | 27 }); |
OLD | NEW |