| OLD | NEW |
| 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 Out of the box experience flow (OOBE). | 6 * @fileoverview Out of the box experience flow (OOBE). |
| 7 * This is the main code for the OOBE WebUI implementation. | 7 * This is the main code for the OOBE WebUI implementation. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 // <include src="login_shared.js"> | 10 // <include src="login_shared.js"> |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 Oobe.getInstance().updateLocalizedContent_(); | 324 Oobe.getInstance().updateLocalizedContent_(); |
| 325 }, | 325 }, |
| 326 | 326 |
| 327 /** | 327 /** |
| 328 * This method takes care of switching to material-design OOBE. | 328 * This method takes care of switching to material-design OOBE. |
| 329 * @private | 329 * @private |
| 330 */ | 330 */ |
| 331 setMDMode_: function() { | 331 setMDMode_: function() { |
| 332 if (loadTimeData.getString('newOobeUI') == 'on') { | 332 if (loadTimeData.getString('newOobeUI') == 'on') { |
| 333 $('oobe').setAttribute('md-mode', 'true'); | 333 $('oobe').setAttribute('md-mode', 'true'); |
| 334 $('oobe-shield').setAttribute('md-mode', 'true'); |
| 334 } else { | 335 } else { |
| 335 $('oobe').removeAttribute('md-mode'); | 336 $('oobe').removeAttribute('md-mode'); |
| 337 $('oobe-shield').removeAttribute('md-mode'); |
| 336 } | 338 } |
| 337 }, | 339 }, |
| 338 }; | 340 }; |
| 339 }); | 341 }); |
| OLD | NEW |