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

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

Issue 2957153003: MD Settings: remove unsupported routes from guest-mode. (Closed)
Patch Set: merge Created 3 years, 5 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 * 7 *
8 * 'settings-reset-profile-dialog' is the dialog shown for clearing profile 8 * 'settings-reset-profile-dialog' is the dialog shown for clearing profile
9 * settings. A triggered variant of this dialog can be shown under certain 9 * settings. A triggered variant of this dialog can be shown under certain
10 * circumstances. See triggered_profile_resetter.h for when the triggered 10 * circumstances. See triggered_profile_resetter.h for when the triggered
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 /** @private */ 88 /** @private */
89 showDialog_: function() { 89 showDialog_: function() {
90 this.$.dialog.showModal(); 90 this.$.dialog.showModal();
91 this.browserProxy_.onShowResetProfileDialog(); 91 this.browserProxy_.onShowResetProfileDialog();
92 }, 92 },
93 93
94 /** @override */ 94 /** @override */
95 attached: function() { 95 attached: function() {
96 this.isTriggered_ = 96 this.isTriggered_ =
97 settings.getCurrentRoute() == settings.Route.TRIGGERED_RESET_DIALOG; 97 settings.getCurrentRoute() == settings.routes.TRIGGERED_RESET_DIALOG;
98 if (this.isTriggered_) { 98 if (this.isTriggered_) {
99 this.browserProxy_.getTriggeredResetToolName().then(function(name) { 99 this.browserProxy_.getTriggeredResetToolName().then(function(name) {
100 this.resetRequestOrigin_ = 'triggeredreset'; 100 this.resetRequestOrigin_ = 'triggeredreset';
101 this.triggeredResetToolName_ = name; 101 this.triggeredResetToolName_ = name;
102 this.showDialog_(); 102 this.showDialog_();
103 }.bind(this)); 103 }.bind(this));
104 } else { 104 } else {
105 // For the non-triggered reset dialog, a '#cct' hash indicates that the 105 // For the non-triggered reset dialog, a '#cct' hash indicates that the
106 // reset request came from the Chrome Cleanup Tool by launching Chrome 106 // reset request came from the Chrome Cleanup Tool by launching Chrome
107 // with the startup URL chrome://settings/resetProfileSettings#cct. 107 // with the startup URL chrome://settings/resetProfileSettings#cct.
(...skipping 27 matching lines...) Expand all
135 /** 135 /**
136 * Displays the settings that will be reported in a new tab. 136 * Displays the settings that will be reported in a new tab.
137 * @param {!Event} e 137 * @param {!Event} e
138 * @private 138 * @private
139 */ 139 */
140 onShowReportedSettingsTap_: function(e) { 140 onShowReportedSettingsTap_: function(e) {
141 this.browserProxy_.showReportedSettings(); 141 this.browserProxy_.showReportedSettings();
142 e.stopPropagation(); 142 e.stopPropagation();
143 }, 143 },
144 }); 144 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/reset_page/reset_profile_banner.js ('k') | chrome/browser/resources/settings/route.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698