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

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

Issue 2411383003: md-settings: add reset request origin to reset feedback proto. (Closed)
Patch Set: Addressed dbeam@'s comments 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 * @protected 45 * @protected
46 */ 46 */
47 currentRouteChanged: function(route) { 47 currentRouteChanged: function(route) {
48 this.showResetProfileDialog_ = 48 this.showResetProfileDialog_ =
49 route == settings.Route.TRIGGERED_RESET_DIALOG || 49 route == settings.Route.TRIGGERED_RESET_DIALOG ||
50 route == settings.Route.RESET_DIALOG; 50 route == settings.Route.RESET_DIALOG;
51 }, 51 },
52 52
53 /** @private */ 53 /** @private */
54 onShowResetProfileDialog_: function() { 54 onShowResetProfileDialog_: function() {
55 settings.navigateTo(settings.Route.RESET_DIALOG); 55 settings.navigateTo(settings.Route.RESET_DIALOG,
56 new URLSearchParams('origin=userclick'));
56 }, 57 },
57 58
58 /** @private */ 59 /** @private */
59 onResetProfileDialogClose_: function() { 60 onResetProfileDialogClose_: function() {
60 settings.navigateToPreviousRoute(); 61 settings.navigateToPreviousRoute();
61 }, 62 },
62 63
63 <if expr="chromeos"> 64 <if expr="chromeos">
64 /** @private */ 65 /** @private */
65 onShowPowerwashDialog_: function() { 66 onShowPowerwashDialog_: function() {
66 this.showPowerwashDialog_ = true; 67 this.showPowerwashDialog_ = true;
67 }, 68 },
68 69
69 /** @private */ 70 /** @private */
70 onPowerwashDialogClose_: function() { 71 onPowerwashDialogClose_: function() {
71 this.showPowerwashDialog_ = false; 72 this.showPowerwashDialog_ = false;
72 }, 73 },
73 </if> 74 </if>
74 }); 75 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698