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

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

Issue 1179323005: Polymer upgraded to 1.0 in login flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@polymer_pre_migration
Patch Set: Michael's comments. Created 5 years, 6 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/host-pairing-screen.js
diff --git a/chrome/browser/resources/chromeos/login/host-pairing-screen.js b/chrome/browser/resources/chromeos/login/host-pairing-screen.js
index bfeed107a79ae5a3d333d22a49c7aa2c12b71556..25baa3216509d1b33f322748eb1fbc2f12024a58 100644
--- a/chrome/browser/resources/chromeos/login/host-pairing-screen.js
+++ b/chrome/browser/resources/chromeos/login/host-pairing-screen.js
@@ -2,19 +2,37 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-Polymer('host-pairing-screen', (function() {
+Polymer({
+ is: 'host-pairing-page',
+
+ behaviors: [Polymer.NeonAnimatableBehavior]
+});
+
+Polymer((function() {
'use strict';
/** @const */ var CALLBACK_CONTEXT_READY = 'contextReady';
return {
+ is: 'host-pairing-screen',
+
+ behaviors: [login.OobeScreenBehavior],
+
onBeforeShow: function() {
Oobe.getInstance().headerHidden = true;
},
/** @override */
initialize: function() {
+ ['code',
+ 'deviceName',
+ 'enrollmentDomain',
+ 'page'].forEach(this.registerBoundContextField, this);
this.send(CALLBACK_CONTEXT_READY);
+ },
+
+ getEnrollmentStepTitle_: function(enrollmentDomain) {
+ return this.i18n(['enrollingTitle', enrollmentDomain]);
}
};
})());

Powered by Google App Engine
This is Rietveld 408576698