blob: 2ff5c06ee7172a4a42f303d06048a80e425b32c8 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview
* 'settings-powerwash-dialog' is a dialog shown to request confirmation from
* the user for a device reset (aka powerwash).
*/
Polymer({
is: 'settings-powerwash-dialog',
properties: {
/** @public */
requestTpmFirmwareUpdate: Boolean,
},
/** @override */
attached: function() {
settings.ResetBrowserProxyImpl.getInstance().onPowerwashDialogShow();
this.$.dialog.showModal();
},
/** @private */
onCancelTap_: function() {
this.$.dialog.close();
},
/** @private */
onRestartTap_: function() {
settings.LifetimeBrowserProxyImpl.getInstance().factoryReset(
this.requestTpmFirmwareUpdate);
},
});