Index: chrome/browser/resources/chromeos/login/oobe-screen.js |
diff --git a/chrome/browser/resources/chromeos/login/oobe-screen.js b/chrome/browser/resources/chromeos/login/oobe-screen.js |
index 251b6a3bdda44dbe86d4aada45844167643c40ab..cc5ff253355b92e43672e7dbf6e2f025a7ae2a78 100644 |
--- a/chrome/browser/resources/chromeos/login/oobe-screen.js |
+++ b/chrome/browser/resources/chromeos/login/oobe-screen.js |
@@ -51,6 +51,10 @@ Polymer('oobe-screen', (function() { |
} |
}, |
+ userActed: function(_, _, source) { |
+ this.send(CALLBACK_USER_ACTED, source.getAttribute('action')); |
+ }, |
+ |
i18n: function(args) { |
if (!(args instanceof Array)) |
args = [args]; |
@@ -68,13 +72,6 @@ Polymer('oobe-screen', (function() { |
this.C = this.context.storage_; |
this.contextObservers_ = {}; |
var self = this; |
- this.querySelectorAllImpl_('button[action]').forEach(function(button) { |
- button.addEventListener('click', function(e) { |
- var action = this.getAttribute('action'); |
- self.send(CALLBACK_USER_ACTED, action); |
- e.stopPropagation(); |
- }); |
- }); |
if (this.ready_) { |
this.initialize(); |
} else { |