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

Side by Side Diff: chrome/browser/resources/settings/reset_page/reset_page.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-page' is the settings page containing reset 7 * 'settings-reset-page' is the settings page containing reset
8 * settings. 8 * settings.
9 * 9 *
10 * Example: 10 * Example:
(...skipping 13 matching lines...) Expand all
24 <if expr="chromeos"> 24 <if expr="chromeos">
25 /** @private */ 25 /** @private */
26 showPowerwashDialog_: Boolean, 26 showPowerwashDialog_: Boolean,
27 </if> 27 </if>
28 28
29 /** @private */ 29 /** @private */
30 allowPowerwash_: { 30 allowPowerwash_: {
31 type: Boolean, 31 type: Boolean,
32 value: cr.isChromeOS ? loadTimeData.getBoolean('allowPowerwash') : false 32 value: cr.isChromeOS ? loadTimeData.getBoolean('allowPowerwash') : false
33 }, 33 },
34
35 /** @private */
36 showResetProfileDialog_: {
37 type: Boolean,
38 value: false,
39 },
34 }, 40 },
35 41
36 /** @protected */ 42 /** @protected */
37 currentRouteChanged: function() { 43 currentRouteChanged: function() {
38 if (settings.getCurrentRoute() == settings.Route.RESET_DIALOG) { 44 this.showResetProfileDialog_ =
39 this.$.resetProfileDialog.get().open(); 45 settings.getCurrentRoute() == settings.Route.RESET_DIALOG;
40 }
41 }, 46 },
42 47
43 /** @private */ 48 /** @private */
44 onShowResetProfileDialog_: function() { 49 onShowResetProfileDialog_: function() {
45 settings.navigateTo(settings.Route.RESET_DIALOG); 50 settings.navigateTo(settings.Route.RESET_DIALOG);
46 }, 51 },
47 52
48 /** @private */ 53 /** @private */
49 onResetProfileDialogClose_: function() { 54 onResetProfileDialogClose_: function() {
50 settings.navigateToPreviousRoute(); 55 settings.navigateToPreviousRoute();
51 }, 56 },
52 57
53 <if expr="chromeos"> 58 <if expr="chromeos">
54 /** @private */ 59 /** @private */
55 onShowPowerwashDialog_: function() { 60 onShowPowerwashDialog_: function() {
56 this.showPowerwashDialog_ = true; 61 this.showPowerwashDialog_ = true;
57 }, 62 },
58 63
59 /** @private */ 64 /** @private */
60 onPowerwashDialogClose_: function() { 65 onPowerwashDialogClose_: function() {
61 this.showPowerwashDialog_ = false; 66 this.showPowerwashDialog_ = false;
62 }, 67 },
63 </if> 68 </if>
64 }); 69 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698