MobileSetup.REDIRECT_POST_PAGE_URL = MobileSetup.EXTENSION_PAGE_URL +
'/redirect.html';
- MobileSetup.localStrings_ = new LocalStrings();
-
MobileSetup.prototype = {
// Mobile device information.
deviceInfo_: null,
this.frameName_ = frame_name;
cr.ui.dialogs.BaseDialog.OK_LABEL =
- MobileSetup.localStrings_.getString('ok_button');
+ loadTimeData.getString('ok_button');
cr.ui.dialogs.BaseDialog.CANCEL_LABEL =
- MobileSetup.localStrings_.getString('cancel_button');
+ loadTimeData.getString('cancel_button');
this.confirm_ = new cr.ui.dialogs.ConfirmDialog(document.body);
window.addEventListener('message', function(e) {
break;
$('statusHeader').textContent =
- MobileSetup.localStrings_.getString('connecting_header');
+ loadTimeData.getString('connecting_header');
$('auxHeader').textContent =
- MobileSetup.localStrings_.getString('please_wait');
+ loadTimeData.getString('please_wait');
$('paymentForm').classList.add('hidden');
$('finalStatus').classList.add('hidden');
this.setCarrierPage_(MobileSetup.ACTIVATION_PAGE_URL);
break;
$('statusHeader').textContent =
- MobileSetup.localStrings_.getString('activating_header');
+ loadTimeData.getString('activating_header');
$('auxHeader').textContent =
- MobileSetup.localStrings_.getString('please_wait');
+ loadTimeData.getString('please_wait');
$('paymentForm').classList.add('hidden');
$('finalStatus').classList.add('hidden');
this.setCarrierPage_(MobileSetup.ACTIVATION_PAGE_URL);
// Activation page should not be shown for the simple activation flow.
if (!simpleActivationFlow) {
$('statusHeader').textContent =
- MobileSetup.localStrings_.getString('connecting_header');
+ loadTimeData.getString('connecting_header');
$('auxHeader').textContent = '';
$('paymentForm').classList.add('hidden');
$('finalStatus').classList.add('hidden');
var statusHeaderText;
var carrierPage;
if (deviceInfo.activation_type == 'NonCellular') {
- statusHeaderText = MobileSetup.localStrings_.getString(
+ statusHeaderText = loadTimeData.getString(
'portal_unreachable_header');
carrierPage = MobileSetup.PORTAL_OFFLINE_PAGE_URL;
} else if (deviceInfo.activation_type == 'OTA') {
statusHeaderText =
- MobileSetup.localStrings_.getString('connecting_header');
+ loadTimeData.getString('connecting_header');
carrierPage = MobileSetup.ACTIVATION_PAGE_URL;
}
$('statusHeader').textContent = statusHeaderText;
$('statusHeader').textContent = '';
$('auxHeader').textContent = '';
$('finalHeader').textContent =
- MobileSetup.localStrings_.getString('completed_header');
+ loadTimeData.getString('completed_header');
$('finalMessage').textContent =
- MobileSetup.localStrings_.getString('completed_text');
+ loadTimeData.getString('completed_text');
$('systemStatus').classList.add('hidden');
$('closeButton').classList.remove('hidden');
$('finalStatus').classList.remove('hidden');
$('statusHeader').textContent = '';
$('auxHeader').textContent = '';
$('finalHeader').textContent =
- MobileSetup.localStrings_.getString('error_header');
+ loadTimeData.getString('error_header');
$('finalMessage').textContent = deviceInfo.error;
$('systemStatus').classList.add('hidden');
$('canvas').classList.add('hidden');