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

Unified Diff: chrome/browser/resources/options2/autofill_options_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/autofill_options_list.js
diff --git a/chrome/browser/resources/options2/autofill_options_list.js b/chrome/browser/resources/options2/autofill_options_list.js
index 422545a14e371329ba21e25537e9f06e55ca40d5..7bb9c7bf88b83a3626c2cb9a2f3a562ab63b0452 100644
--- a/chrome/browser/resources/options2/autofill_options_list.js
+++ b/chrome/browser/resources/options2/autofill_options_list.js
@@ -11,7 +11,8 @@ cr.define('options.autofillOptions', function() {
function AutofillEditProfileButton(guid, edit) {
var editButtonEl = document.createElement('button');
editButtonEl.className = 'list-inline-button custom-appearance';
- editButtonEl.textContent = templateData.autofillEditProfileButton;
+ editButtonEl.textContent =
+ loadTimeData.getString('autofillEditProfileButton');
editButtonEl.onclick = function(e) { edit(guid); };
// Don't select the row when clicking the button.
@@ -261,11 +262,11 @@ cr.define('options.autofillOptions', function() {
if (this.isPlaceholder) {
this.firstNameInput.placeholder =
- templateData.autofillAddFirstNamePlaceholder;
+ loadTimeData.getString('autofillAddFirstNamePlaceholder');
this.middleNameInput.placeholder =
- templateData.autofillAddMiddleNamePlaceholder;
+ loadTimeData.getString('autofillAddMiddleNamePlaceholder');
this.lastNameInput.placeholder =
- templateData.autofillAddLastNamePlaceholder;
+ loadTimeData.getString('autofillAddLastNamePlaceholder');
this.deletable = false;
}
« no previous file with comments | « chrome/browser/resources/options2/autofill_options.js ('k') | chrome/browser/resources/options2/browser_options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698