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

Unified Diff: chrome/browser/resources/chromeos/mobile_setup.js

Issue 588363002: WebUI: Update some more uses of the old-style i18ntemplate/LocalStrings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IDS_CANCEL change is in a different cl Created 6 years, 3 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/mobile_setup.js
diff --git a/chrome/browser/resources/chromeos/mobile_setup.js b/chrome/browser/resources/chromeos/mobile_setup.js
index 5369bf5f54fcc1a2e3a40db7b2e0a0a14947905c..f1b8e25aa66aa3cb21ea39f7cf84058854afd930 100644
--- a/chrome/browser/resources/chromeos/mobile_setup.js
+++ b/chrome/browser/resources/chromeos/mobile_setup.js
@@ -35,8 +35,6 @@ cr.define('mobile', function() {
MobileSetup.REDIRECT_POST_PAGE_URL = MobileSetup.EXTENSION_PAGE_URL +
'/redirect.html';
- MobileSetup.localStrings_ = new LocalStrings();
-
MobileSetup.prototype = {
// Mobile device information.
deviceInfo_: null,
@@ -67,9 +65,9 @@ cr.define('mobile', function() {
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) {
@@ -162,9 +160,9 @@ cr.define('mobile', function() {
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);
@@ -180,9 +178,9 @@ cr.define('mobile', function() {
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);
@@ -194,7 +192,7 @@ cr.define('mobile', function() {
// 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');
@@ -208,12 +206,12 @@ cr.define('mobile', function() {
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;
@@ -240,9 +238,9 @@ cr.define('mobile', function() {
$('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');
@@ -255,7 +253,7 @@ cr.define('mobile', function() {
$('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');
« no previous file with comments | « chrome/browser/resources/chromeos/mobile_setup.html ('k') | chrome/browser/resources/chromeos/mobile_setup_portal.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698