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

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

Issue 2375223002: md-settings: Fix back navigation from /resetProfileSettings. (Closed)
Patch Set: Fix failing test. Created 4 years, 2 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-profile-banner' is the banner shown for clearing profile 7 * 'settings-reset-profile-banner' is the banner shown for clearing profile
8 * settings. 8 * settings.
9 */ 9 */
10 Polymer({ 10 Polymer({
11 is: 'settings-reset-profile-banner', 11 is: 'settings-reset-profile-banner',
12 12
13 properties: { 13 properties: {
14 showResetProfileDialog_: { 14 showResetProfileDialog_: {
15 type: Boolean, 15 type: Boolean,
16 value: false, 16 value: false,
17 }, 17 },
18 }, 18 },
19 19
20 /** @private */ 20 /** @private */
21 onCloseTap_: function() { 21 onCloseTap_: function() {
22 settings.ResetBrowserProxyImpl.getInstance().onHideResetProfileBanner(); 22 settings.ResetBrowserProxyImpl.getInstance().onHideResetProfileBanner();
23 this.remove(); 23 this.remove();
24 }, 24 },
25 25
26 /** 26 /**
27 * Creates and shows a <settings-reset-profile-dialog>. 27 * Shows a <settings-reset-profile-dialog>.
28 * @private 28 * @private
29 */ 29 */
30 showDialog_: function(dialogName) { 30 showDialog_: function() {
31 this.showResetProfileDialog_ = true; 31 this.showResetProfileDialog_ = true;
32 this.async(function() {
33 var dialog = this.$$('settings-reset-profile-dialog');
34 dialog.open();
35 }.bind(this));
36 }, 32 },
37 33
38 onResetDone_: function() { 34 /** @private */
35 onDialogClose_: function() {
39 this.showResetProfileDialog_ = false; 36 this.showResetProfileDialog_ = false;
40 }, 37 },
41 }); 38 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698