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

Side by Side Diff: chrome/browser/resources/settings/reset_page/powerwash_dialog.js

Issue 2339853003: MD Settings: Fix Reset profile dialog scenario that causes a crash. (Closed)
Patch Set: Nit Created 4 years, 3 months 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 | « no previous file | chrome/browser/resources/settings/reset_page/reset_page.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/reset_page/reset_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698