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

Unified Diff: chrome/browser/resources/options2/browser_options_profile_list.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/browser_options_profile_list.js
diff --git a/chrome/browser/resources/options2/browser_options_profile_list.js b/chrome/browser/resources/options2/browser_options_profile_list.js
index 9c47492c781cf8f7f9dd837f4d8a5ef18d5305db..822a37966761f43e197cd6086b3fbcc4231a792b 100644
--- a/chrome/browser/resources/options2/browser_options_profile_list.js
+++ b/chrome/browser/resources/options2/browser_options_profile_list.js
@@ -7,8 +7,6 @@ cr.define('options.browser_options', function() {
/** @const */ var DeletableItemList = options.DeletableItemList;
/** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel;
- var localStrings = new LocalStrings();
-
/**
* Creates a new profile list item.
* @param {Object} profileInfo The profile this item respresents.
@@ -58,10 +56,10 @@ cr.define('options.browser_options', function() {
this.contentElement.appendChild(nameEl);
var displayName = profileInfo.name;
- if (profileInfo.isCurrentProfile)
- displayName = localStrings.getStringF(
- 'profilesListItemCurrent',
- profileInfo.name);
+ if (profileInfo.isCurrentProfile) {
+ displayName = loadTimeData.getStringF('profilesListItemCurrent',
+ profileInfo.name);
+ }
nameEl.textContent = displayName;
// Ensure that the button cannot be tabbed to for accessibility reasons.

Powered by Google App Engine
This is Rietveld 408576698