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

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

Issue 2834433002: MD Settings: ESLint --fix output, WIP. (Closed)
Patch Set: Created 3 years, 8 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 /** @private */ 114 /** @private */
115 onCancelTap_: function() { 115 onCancelTap_: function() {
116 this.$.dialog.cancel(); 116 this.$.dialog.cancel();
117 }, 117 },
118 118
119 /** @private */ 119 /** @private */
120 onResetTap_: function() { 120 onResetTap_: function() {
121 this.clearingInProgress_ = true; 121 this.clearingInProgress_ = true;
122 this.browserProxy_.performResetProfileSettings( 122 this.browserProxy_.performResetProfileSettings(
123 this.$.sendSettings.checked, this.resetRequestOrigin_).then(function() { 123 this.$.sendSettings.checked, this.resetRequestOrigin_).then(function() {
124 this.clearingInProgress_ = false; 124 this.clearingInProgress_ = false;
125 if (this.$.dialog.open) 125 if (this.$.dialog.open)
126 this.$.dialog.close(); 126 this.$.dialog.close();
127 this.fire('reset-done'); 127 this.fire('reset-done');
128 }.bind(this)); 128 }.bind(this));
Dan Beam 2017/04/19 19:04:40 i don't necessarily think this indent is better bu
129 }, 129 },
130 130
131 /** 131 /**
132 * Displays the settings that will be reported in a new tab. 132 * Displays the settings that will be reported in a new tab.
133 * @param {!Event} e 133 * @param {!Event} e
134 * @private 134 * @private
135 */ 135 */
136 onShowReportedSettingsTap_: function(e) { 136 onShowReportedSettingsTap_: function(e) {
137 this.browserProxy_.showReportedSettings(); 137 this.browserProxy_.showReportedSettings();
138 e.stopPropagation(); 138 e.stopPropagation();
139 }, 139 },
140 }); 140 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698