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

Side by Side Diff: chrome/browser/resources/settings/about_page/channel_switcher_dialog.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 'settings-channel-switcher-dialog' is a component allowing the 6 * @fileoverview 'settings-channel-switcher-dialog' is a component allowing the
7 * user to switch between release channels (dev, beta, stable). A 7 * user to switch between release channels (dev, beta, stable). A
8 * |target-channel-changed| event is fired if the user does select a different 8 * |target-channel-changed| event is fired if the user does select a different
9 * release channel to notify parents of this dialog. 9 * release channel to notify parents of this dialog.
10 */ 10 */
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 // Selected channel is the same as the current channel, allow the user to 131 // Selected channel is the same as the current channel, allow the user to
132 // change without warnings. 132 // change without warnings.
133 if (selectedChannel == this.currentChannel_) { 133 if (selectedChannel == this.currentChannel_) {
134 this.updateButtons_(true, false); 134 this.updateButtons_(true, false);
135 this.warning_ = null; 135 this.warning_ = null;
136 return; 136 return;
137 } 137 }
138 138
139 if (settings.isTargetChannelMoreStable( 139 if (settings.isTargetChannelMoreStable(
140 this.currentChannel_, selectedChannel)) { 140 this.currentChannel_, selectedChannel)) {
141 // More stable channel selected. For non managed devices, notify the user 141 // More stable channel selected. For non managed devices, notify the user
142 // about powerwash. 142 // about powerwash.
143 if (loadTimeData.getBoolean('aboutEnterpriseManaged')) { 143 if (loadTimeData.getBoolean('aboutEnterpriseManaged')) {
144 this.updateWarning_( 144 this.updateWarning_(
145 'aboutDelayedWarningTitle', 'aboutDelayedWarningMessage', 145 'aboutDelayedWarningTitle', 'aboutDelayedWarningMessage',
146 'aboutProductTitle'); 146 'aboutProductTitle');
147 this.updateButtons_(true, false); 147 this.updateButtons_(true, false);
148 } else { 148 } else {
149 this.updateWarning_( 149 this.updateWarning_(
150 'aboutPowerwashWarningTitle', 'aboutPowerwashWarningMessage'); 150 'aboutPowerwashWarningTitle', 'aboutPowerwashWarningMessage');
(...skipping 13 matching lines...) Expand all
164 }, 164 },
165 165
166 /** 166 /**
167 * @return {boolean} 167 * @return {boolean}
168 * @private 168 * @private
169 */ 169 */
170 shouldShowWarning_: function() { 170 shouldShowWarning_: function() {
171 return this.warning_ !== null; 171 return this.warning_ !== null;
172 }, 172 },
173 }); 173 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698