| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 Login UI based on a stripped down OOBE controller. | 6 * @fileoverview Login UI based on a stripped down OOBE controller. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 <include src="login_shared.js"> | 9 <include src="login_shared.js"> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 } | 37 } |
| 38 })(); | 38 })(); |
| 39 | 39 |
| 40 cr.define('cr.ui.Oobe', function() { | 40 cr.define('cr.ui.Oobe', function() { |
| 41 return { | 41 return { |
| 42 /** | 42 /** |
| 43 * Initializes the OOBE flow. This will cause all C++ handlers to | 43 * Initializes the OOBE flow. This will cause all C++ handlers to |
| 44 * be invoked to do final setup. | 44 * be invoked to do final setup. |
| 45 */ | 45 */ |
| 46 initialize: function() { | 46 initialize: function() { |
| 47 // TODO(jdufault): Remove this after resolving crbug.com/452599. | |
| 48 console.log('Start initializing LOCK OOBE'); | |
| 49 | |
| 50 cr.ui.login.DisplayManager.initialize(); | 47 cr.ui.login.DisplayManager.initialize(); |
| 51 login.AccountPickerScreen.register(); | 48 login.AccountPickerScreen.register(); |
| 52 | 49 |
| 53 cr.ui.Bubble.decorate($('bubble')); | 50 cr.ui.Bubble.decorate($('bubble')); |
| 54 login.HeaderBar.decorate($('login-header-bar')); | 51 login.HeaderBar.decorate($('login-header-bar')); |
| 55 | 52 |
| 56 chrome.send('screenStateInitialize'); | 53 chrome.send('screenStateInitialize'); |
| 57 }, | 54 }, |
| 58 | 55 |
| 59 // Dummy Oobe functions not present with stripped login UI. | 56 // Dummy Oobe functions not present with stripped login UI. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 71 * Reloads content of the page. | 68 * Reloads content of the page. |
| 72 * @param {!Object} data New dictionary with i18n values. | 69 * @param {!Object} data New dictionary with i18n values. |
| 73 */ | 70 */ |
| 74 reloadContent: function(data) { | 71 reloadContent: function(data) { |
| 75 loadTimeData.overrideValues(data); | 72 loadTimeData.overrideValues(data); |
| 76 i18nTemplate.process(document, loadTimeData); | 73 i18nTemplate.process(document, loadTimeData); |
| 77 Oobe.getInstance().updateLocalizedContent_(); | 74 Oobe.getInstance().updateLocalizedContent_(); |
| 78 }, | 75 }, |
| 79 }; | 76 }; |
| 80 }); | 77 }); |
| OLD | NEW |