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

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

Issue 2180823004: Migrate <cr-dialog> from PaperDialogBehavior to native <dialog>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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
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 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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698