| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 Polymer({ | 5 Polymer({ |
| 6 is: 'host-pairing-page', | 6 is: 'host-pairing-page', |
| 7 | 7 |
| 8 behaviors: [Polymer.NeonAnimatableBehavior] | 8 behaviors: [Polymer.NeonAnimatableBehavior] |
| 9 }); | 9 }); |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 /** @override */ | 25 /** @override */ |
| 26 initialize: function() { | 26 initialize: function() { |
| 27 ['code', | 27 ['code', |
| 28 'deviceName', | 28 'deviceName', |
| 29 'enrollmentDomain', | 29 'enrollmentDomain', |
| 30 'page'].forEach(this.registerBoundContextField, this); | 30 'page'].forEach(this.registerBoundContextField, this); |
| 31 this.send(CALLBACK_CONTEXT_READY); | 31 this.send(CALLBACK_CONTEXT_READY); |
| 32 }, | 32 }, |
| 33 | 33 |
| 34 i18n: function(args) { |
| 35 return loadTimeData.getStringF.apply(loadTimeData, args); |
| 36 }, |
| 37 |
| 34 getEnrollmentStepTitle_: function(enrollmentDomain) { | 38 getEnrollmentStepTitle_: function(enrollmentDomain) { |
| 35 return this.i18n(['enrollingTitle', enrollmentDomain]); | 39 return this.i18n(['loginHostPairingScreenEnrollingTitle', |
| 40 enrollmentDomain]); |
| 36 } | 41 } |
| 37 }; | 42 }; |
| 38 })()); | 43 })()); |
| OLD | NEW |