1 // Copyright (c) 2013 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.
6 * @fileoverview wrong HWID screen implementation.
9 login
.createScreen('WrongHWIDScreen', 'wrong-hwid', function() {
12 decorate: function() {
13 $('skip-hwid-warning-link').addEventListener('click', function(event
) {
14 chrome
.send('wrongHWIDOnSkip');
16 this.updateLocalizedContent();
20 * Updates state of login header so that necessary buttons are displayed.
22 onBeforeShow: function(data
) {
23 $('login-header-bar').signinUIState
= SIGNIN_UI_STATE
.WRONG_HWID_WARNING
;
27 * Updates localized content of the screen that is not updated via template.
29 updateLocalizedContent: function() {
30 $('wrong-hwid-message-content').innerHTML
=
32 loadTimeData
.getStringF('wrongHWIDMessageFirstPart',
33 '<strong>', '</strong>') +
35 loadTimeData
.getString('wrongHWIDMessageSecondPart') +