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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_screen_network.js

Issue 2812823002: ChromeOS OOBE: cr-network-list strings must be updated on UI language change. (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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/oobe_welcome.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 Oobe network screen implementation. 6 * @fileoverview Oobe network screen implementation.
7 */ 7 */
8 8
9 login.createScreen('NetworkScreen', 'connect', function() { 9 login.createScreen('NetworkScreen', 'connect', function() {
10 var USER_ACTION_CONTINUE_BUTTON_CLICKED = 'continue'; 10 var USER_ACTION_CONTINUE_BUTTON_CLICKED = 'continue';
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 $('bubble').showContentForElement($('networks-list'), 167 $('bubble').showContentForElement($('networks-list'),
168 cr.ui.Bubble.Attachment.BOTTOM, 168 cr.ui.Bubble.Attachment.BOTTOM,
169 error); 169 error);
170 }, 170 },
171 171
172 /** 172 /**
173 * This is called after resources are updated. 173 * This is called after resources are updated.
174 */ 174 */
175 updateLocalizedContent: function() { 175 updateLocalizedContent: function() {
176 this.setMDMode_(); 176 this.setMDMode_();
177 $('oobe-welcome-md').updateLocalizedContent();
177 }, 178 },
178 179
179 /** 180 /**
180 * This method takes care of switching to material-design OOBE. 181 * This method takes care of switching to material-design OOBE.
181 * @private 182 * @private
182 */ 183 */
183 setMDMode_: function() { 184 setMDMode_: function() {
184 var useMDOobe = (loadTimeData.getString('newOobeUI') == 'on'); 185 var useMDOobe = (loadTimeData.getString('newOobeUI') == 'on');
185 186
186 $('oobe-connect').hidden = useMDOobe; 187 $('oobe-connect').hidden = useMDOobe;
(...skipping 10 matching lines...) Expand all
197 var timezoneList = loadTimeData.getValue('timezoneList'); 198 var timezoneList = loadTimeData.getValue('timezoneList');
198 welcomeScreen.timezones = timezoneList; 199 welcomeScreen.timezones = timezoneList;
199 200
200 welcomeScreen.highlightStrength = 201 welcomeScreen.highlightStrength =
201 loadTimeData.getValue('highlightStrength'); 202 loadTimeData.getValue('highlightStrength');
202 } 203 }
203 }, 204 },
204 }; 205 };
205 }); 206 });
206 207
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/oobe_welcome.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698