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

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

Issue 2371303002: md-settings: add routing to chrome://settings/triggeredResetProfileSettings (Closed)
Patch Set: Rebase 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 21 matching lines...) Expand all
32 value: cr.isChromeOS ? loadTimeData.getBoolean('allowPowerwash') : false 32 value: cr.isChromeOS ? loadTimeData.getBoolean('allowPowerwash') : false
33 }, 33 },
34 34
35 /** @private */ 35 /** @private */
36 showResetProfileDialog_: { 36 showResetProfileDialog_: {
37 type: Boolean, 37 type: Boolean,
38 value: false, 38 value: false,
39 }, 39 },
40 }, 40 },
41 41
42 /** @protected */ 42 /**
43 currentRouteChanged: function() { 43 * settings.RouteObserverBehavior
44 * @param {!settings.Route} route
45 * @protected
46 */
47 currentRouteChanged: function(route) {
44 this.showResetProfileDialog_ = 48 this.showResetProfileDialog_ =
45 settings.getCurrentRoute() == settings.Route.RESET_DIALOG; 49 route == settings.Route.TRIGGERED_RESET_DIALOG ||
50 route == settings.Route.RESET_DIALOG;
46 }, 51 },
47 52
48 /** @private */ 53 /** @private */
49 onShowResetProfileDialog_: function() { 54 onShowResetProfileDialog_: function() {
50 settings.navigateTo(settings.Route.RESET_DIALOG); 55 settings.navigateTo(settings.Route.RESET_DIALOG);
51 }, 56 },
52 57
53 /** @private */ 58 /** @private */
54 onResetProfileDialogClose_: function() { 59 onResetProfileDialogClose_: function() {
55 settings.navigateToPreviousRoute(); 60 settings.navigateToPreviousRoute();
56 }, 61 },
57 62
58 <if expr="chromeos"> 63 <if expr="chromeos">
59 /** @private */ 64 /** @private */
60 onShowPowerwashDialog_: function() { 65 onShowPowerwashDialog_: function() {
61 this.showPowerwashDialog_ = true; 66 this.showPowerwashDialog_ = true;
62 }, 67 },
63 68
64 /** @private */ 69 /** @private */
65 onPowerwashDialogClose_: function() { 70 onPowerwashDialogClose_: function() {
66 this.showPowerwashDialog_ = false; 71 this.showPowerwashDialog_ = false;
67 }, 72 },
68 </if> 73 </if>
69 }); 74 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698