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

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

Issue 586953002: get rid of almost all old fashioned i18nTemplates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: window dot 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/image_burner.js
diff --git a/chrome/browser/resources/chromeos/image_burner.js b/chrome/browser/resources/chromeos/image_burner.js
index b3e5aa21c1b9265071c68e583a4e278161c1f853..7a88e024c7392248a399aca9c3796b1170f5bfcc 100644
--- a/chrome/browser/resources/chromeos/image_burner.js
+++ b/chrome/browser/resources/chromeos/image_burner.js
@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-var localStrings;
var browserBridge;
/**
@@ -102,10 +101,10 @@ State.prototype = {
$('warning-text').textContent = this.state.warningText;
if (this.isInitialState() && this.state != State.StatesEnum.DEVICE_NONE) {
- $('warning-button').textContent = localStrings.getString('confirmButton');
+ $('warning-button').textContent = loadTimeData.getString('confirmButton');
} else if (this.state == State.StatesEnum.FAIL) {
$('warning-button').textContent =
- localStrings.getString('retryButton');
+ loadTimeData.getString('retryButton');
}
},
@@ -184,7 +183,7 @@ DeviceSelection.prototype = {
this.selectedDevice = devicePath;
$('warning-text').textContent =
- localStrings.getStringF('warningDevices', label);
+ loadTimeData.getStringF('warningDevices', label);
},
/**
@@ -303,7 +302,7 @@ DeviceSelection.prototype = {
* @constructor
*/
function BrowserBridge() {
- this.currentState = new State(localStrings);
+ this.currentState = new State(loadTimeData);
this.deviceSelection = new DeviceSelection();
// We will use these often so it makes sence making them class members to
// avoid frequent document.getElementById calls.
@@ -426,7 +425,7 @@ BrowserBridge.prototype = {
reportDeviceTooSmall: function(deviceSize) {
this.currentState.changeState(State.StatesEnum.ERROR_DEVICE_TOO_SMALL);
$('warning-text').textContent =
- localStrings.getStringF('warningNoSpace', deviceSize);
+ loadTimeData.getStringF('warningNoSpace', deviceSize);
},
/**
@@ -439,11 +438,8 @@ BrowserBridge.prototype = {
};
document.addEventListener('DOMContentLoaded', function() {
- localStrings = new LocalStrings();
browserBridge = new BrowserBridge();
- jstProcess(new JsEvalContext(templateData), $('more-info-link'));
-
$('cancel-button').onclick =
browserBridge.sendCancelMessage.bind(browserBridge);
browserBridge.sendGetDevicesMessage();
« no previous file with comments | « chrome/browser/resources/chromeos/image_burner.html ('k') | chrome/browser/resources/quota_internals/event_handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698