Index: chrome/browser/resources/options/chromeos/quick_unlock_configure_overlay.js |
diff --git a/chrome/browser/resources/options/chromeos/quick_unlock_configure_overlay.js b/chrome/browser/resources/options/chromeos/quick_unlock_configure_overlay.js |
index 01245685654cb1b48588833c250c205f11979541..2cf087de38d83b60bcdb0432931189f7203ecbef 100644 |
--- a/chrome/browser/resources/options/chromeos/quick_unlock_configure_overlay.js |
+++ b/chrome/browser/resources/options/chromeos/quick_unlock_configure_overlay.js |
@@ -5,14 +5,6 @@ |
cr.define('options', function() { |
var Page = cr.ui.pageManager.Page; |
var PageManager = cr.ui.pageManager.PageManager; |
- |
- /** |
- * Maximum time to wait after the page is fully loaded before we start to |
- * load polymer elements. |
- * @type {number} |
- * @const |
- */ |
- var POLYMER_LOAD_TIMEOUT_MS = 5000; |
/** |
* QuickUnlockConfigureOverlay class |
@@ -38,14 +30,6 @@ |
$('screen-lock-done').onclick = function() { |
QuickUnlockConfigureOverlay.dismiss(); |
}; |
- |
- window.addEventListener('load', function() { |
- // Setting a timeout here to avoid racing with some browsertests, |
- // this should be here for only a short period of time as |
- // md-settings are launching soon. |
- setTimeout( |
- this.ensurePolymerIsLoaded_.bind(this), POLYMER_LOAD_TIMEOUT_MS); |
- }.bind(this)); |
}, |
/** @override */ |