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

Unified Diff: chrome/browser/resources/options2/chromeos/bluetooth_pair_device_overlay.js

Issue 10391044: retry 136193 - convert localStrings to loadTimeData for options page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 7 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/options2/chromeos/bluetooth_pair_device_overlay.js
diff --git a/chrome/browser/resources/options2/chromeos/bluetooth_pair_device_overlay.js b/chrome/browser/resources/options2/chromeos/bluetooth_pair_device_overlay.js
index ccd573e78f43fe058293d86a1966515d20d04d76..eaf4c9912232e8d40bc5ac29a4f96495f0b7e4fe 100644
--- a/chrome/browser/resources/options2/chromeos/bluetooth_pair_device_overlay.js
+++ b/chrome/browser/resources/options2/chromeos/bluetooth_pair_device_overlay.js
@@ -8,7 +8,7 @@ cr.define('options', function() {
/**
* Enumeration of possible states during pairing. The value associated with
* each state maps to a localized string in the global variable
- * 'templateData'.
+ * |loadTimeData|.
* @enum {string}
*/
var PAIRING = {
@@ -46,7 +46,7 @@ cr.define('options', function() {
function BluetoothPairing() {
OptionsPage.call(this,
'bluetoothPairing',
- templateData.bluetoothOptionsPageTabTitle,
+ loadTimeData.getString('bluetoothOptionsPageTabTitle'),
'bluetooth-pairing');
}
@@ -168,7 +168,7 @@ cr.define('options', function() {
this.dismissible_ = ('dismissible' in device) ?
device.dimissible : true;
- var message = templateData[device.pairing];
+ var message = loadTimeData.getString('device.pairing');
message = message.replace('%1', this.device_.name);
instructionsEl.textContent = message;
@@ -278,7 +278,7 @@ cr.define('options', function() {
}
if (this.device_.pairing == PAIRING.REMOTE_PASSKEY) {
// Add enter key.
- var label = templateData['bluetoothEnterKey'];
+ var label = loadTimeData.getString('bluetoothEnterKey');
var keyEl = document.createElement('span');
keyEl.textContent = label;
keyEl.className = keyClass;
@@ -306,7 +306,7 @@ cr.define('options', function() {
}
if (this.device_.pairing == PAIRING.REMOTE_PIN_CODE) {
// Add enter key.
- var label = templateData['bluetoothEnterKey'];
+ var label = loadTimeData.getString('bluetoothEnterKey');
var keyEl = document.createElement('span');
keyEl.textContent = label;
keyEl.className = keyClass;

Powered by Google App Engine
This is Rietveld 408576698