| OLD | NEW |
| 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 Common OOBE controller methods. This method is shared between | 6 * @fileoverview Common OOBE controller methods. This method is shared between |
| 7 * OOBE, login, and the lock screen. Add only methods that need to be shared | 7 * OOBE, login, and the lock screen. Add only methods that need to be shared |
| 8 * between all *three* screens here, as each additional method increases the | 8 * between all *three* screens here, as each additional method increases the |
| 9 * time it takes to show the lock screen. | 9 * time it takes to show the lock screen. |
| 10 * | 10 * |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 /text|password|search/.test(src.type); | 434 /text|password|search/.test(src.type); |
| 435 }); | 435 }); |
| 436 | 436 |
| 437 | 437 |
| 438 (function() { | 438 (function() { |
| 439 'use strict'; | 439 'use strict'; |
| 440 | 440 |
| 441 document.addEventListener('DOMContentLoaded', function() { | 441 document.addEventListener('DOMContentLoaded', function() { |
| 442 Oobe.initialize(); | 442 Oobe.initialize(); |
| 443 }); | 443 }); |
| 444 |
| 445 // Install a global error handler so stack traces are included in logs. |
| 446 window.onerror = function(message, file, line, column, error) { |
| 447 console.error(error.stack); |
| 448 } |
| 444 })(); | 449 })(); |
| 445 | 450 |
| OLD | NEW |