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

Unified Diff: chrome/browser/resources/options2/manage_profile_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/manage_profile_overlay.js
diff --git a/chrome/browser/resources/options2/manage_profile_overlay.js b/chrome/browser/resources/options2/manage_profile_overlay.js
index 76c2996a9a01054e02bda4c0582c16890e5234a1..a1c3713e9702cf0affa547dd193450b53335b606 100644
--- a/chrome/browser/resources/options2/manage_profile_overlay.js
+++ b/chrome/browser/resources/options2/manage_profile_overlay.js
@@ -6,8 +6,6 @@ cr.define('options', function() {
var OptionsPage = options.OptionsPage;
var ArrayDataModel = cr.ui.ArrayDataModel;
- /** @const */ var localStrings = new LocalStrings();
-
/**
* ManageProfileOverlay class
* Encapsulated handling of the 'Manage profile...' overlay page.
@@ -15,7 +13,8 @@ cr.define('options', function() {
* @class
*/
function ManageProfileOverlay() {
- OptionsPage.call(this, 'manageProfile', templateData.manageProfileTabTitle,
+ OptionsPage.call(this, 'manageProfile',
+ loadTimeData.getString('manageProfileTabTitle'),
'manage-profile-overlay');
};
@@ -147,7 +146,7 @@ cr.define('options', function() {
showErrorBubble_: function(errorText) {
var nameErrorEl = $('manage-profile-error-bubble');
nameErrorEl.hidden = false;
- nameErrorEl.textContent = localStrings.getString(errorText);
+ nameErrorEl.textContent = loadTimeData.getString(errorText);
$('manage-profile-ok').disabled = true;
},
@@ -230,7 +229,7 @@ cr.define('options', function() {
$('manage-profile-overlay-manage').hidden = true;
$('manage-profile-overlay-delete').hidden = false;
$('delete-profile-message').textContent =
- localStrings.getStringF('deleteProfileMessage', profileInfo.name);
+ loadTimeData.getStringF('deleteProfileMessage', profileInfo.name);
$('delete-profile-message').style.backgroundImage = 'url("' +
profileInfo.iconURL + '")';
« no previous file with comments | « chrome/browser/resources/options2/language_options.js ('k') | chrome/browser/resources/options2/options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698