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

Side by Side Diff: chrome/browser/resources/help/channel_change_page.js

Issue 565903002: Fixed "Relaunch and Powerwash" button on a chrome://help page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/resources/help/help_page.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 cr.define('help', function() { 5 cr.define('help', function() {
6 var Page = cr.ui.pageManager.Page; 6 var Page = cr.ui.pageManager.Page;
7 var PageManager = cr.ui.pageManager.PageManager; 7 var PageManager = cr.ui.pageManager.PageManager;
8 8
9 /** 9 /**
10 * Encapsulated handling of the channel change overlay. 10 * Encapsulated handling of the channel change overlay.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 }, 188 },
189 189
190 /** 190 /**
191 * Updates page UI according to device owhership policy. 191 * Updates page UI according to device owhership policy.
192 * @param {boolean} isEnterpriseManaged True if the device is 192 * @param {boolean} isEnterpriseManaged True if the device is
193 * enterprise managed 193 * enterprise managed
194 * @private 194 * @private
195 */ 195 */
196 updateIsEnterpriseManaged_: function(isEnterpriseManaged) { 196 updateIsEnterpriseManaged_: function(isEnterpriseManaged) {
197 this.isEnterpriseManaged_ = isEnterpriseManaged; 197 this.isEnterpriseManaged_ = isEnterpriseManaged;
198 help.HelpPage.updateChannelChangePageContainerVisibility();
199 }, 198 },
200 199
201 /** 200 /**
202 * Updates name of the current channel, i.e. the name of the 201 * Updates name of the current channel, i.e. the name of the
203 * channel the device is currently on. 202 * channel the device is currently on.
204 * @param {string} channel The name of the current channel 203 * @param {string} channel The name of the current channel
205 * @private 204 * @private
206 */ 205 */
207 updateCurrentChannel_: function(channel) { 206 updateCurrentChannel_: function(channel) {
208 if (this.channelList_.indexOf(channel) < 0) 207 if (this.channelList_.indexOf(channel) < 0)
209 return; 208 return;
210 this.currentChannel_ = channel; 209 this.currentChannel_ = channel;
211 this.selectOption_(channel); 210 this.selectOption_(channel);
212 help.HelpPage.updateChannelChangePageContainerVisibility();
213 }, 211 },
214 212
215 /** 213 /**
216 * Updates name of the target channel, i.e. the name of the 214 * Updates name of the target channel, i.e. the name of the
217 * channel the device is supposed to be in case of a pending 215 * channel the device is supposed to be in case of a pending
218 * channel change. 216 * channel change.
219 * @param {string} channel The name of the target channel 217 * @param {string} channel The name of the target channel
220 * @private 218 * @private
221 */ 219 */
222 updateTargetChannel_: function(channel) { 220 updateTargetChannel_: function(channel) {
223 if (this.channelList_.indexOf(channel) < 0) 221 if (this.channelList_.indexOf(channel) < 0)
224 return; 222 return;
225 this.targetChannel_ = channel; 223 this.targetChannel_ = channel;
226 help.HelpPage.updateChannelChangePageContainerVisibility();
227 }, 224 },
228 225
229 /** 226 /**
230 * @return {boolean} True if the page is ready and can be 227 * @return {boolean} True if the page is ready and can be
231 * displayed, false otherwise 228 * displayed, false otherwise
232 * @private 229 * @private
233 */ 230 */
234 isPageReady_: function() { 231 isPageReady_: function() {
235 if (typeof this.isEnterpriseManaged_ == 'undefined') 232 if (typeof this.isEnterpriseManaged_ == 'undefined')
236 return false; 233 return false;
(...skipping 18 matching lines...) Expand all
255 252
256 ChannelChangePage.isPageReady = function() { 253 ChannelChangePage.isPageReady = function() {
257 return ChannelChangePage.getInstance().isPageReady_(); 254 return ChannelChangePage.getInstance().isPageReady_();
258 }; 255 };
259 256
260 // Export 257 // Export
261 return { 258 return {
262 ChannelChangePage: ChannelChangePage 259 ChannelChangePage: ChannelChangePage
263 }; 260 };
264 }); 261 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/help/help_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698