Elim cr-checkbox
[chromium-blink-merge.git] / chrome / browser / resources / chromeos / login / host-pairing-screen.js
blob25baa3216509d1b33f322748eb1fbc2f12024a58
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 Polymer({
6 is: 'host-pairing-page',
8 behaviors: [Polymer.NeonAnimatableBehavior]
9 });
11 Polymer((function() {
12 'use strict';
14 /** @const */ var CALLBACK_CONTEXT_READY = 'contextReady';
16 return {
17 is: 'host-pairing-screen',
19 behaviors: [login.OobeScreenBehavior],
21 onBeforeShow: function() {
22 Oobe.getInstance().headerHidden = true;
25 /** @override */
26 initialize: function() {
27 ['code',
28 'deviceName',
29 'enrollmentDomain',
30 'page'].forEach(this.registerBoundContextField, this);
31 this.send(CALLBACK_CONTEXT_READY);
34 getEnrollmentStepTitle_: function(enrollmentDomain) {
35 return this.i18n(['enrollingTitle', enrollmentDomain]);
38 })());