Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2410)

Unified Diff: chrome/browser/resources/chromeos/login/oobe-screen.js

Issue 642313002: Implemented UI for the meetings controller out-of-box. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merge_point
Patch Set: Clean up. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {

Powered by Google App Engine
This is Rietveld 408576698