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

Unified Diff: chrome/browser/resources/options2/options_page.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
« no previous file with comments | « chrome/browser/resources/options2/options.js ('k') | chrome/browser/resources/options2/password_manager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options2/options_page.js
diff --git a/chrome/browser/resources/options2/options_page.js b/chrome/browser/resources/options2/options_page.js
index 3ca36bfa27b3561fc6bcf7378a7f49d783543a89..3b5f21972d29827c0debd36edac70d6fd0c39169 100644
--- a/chrome/browser/resources/options2/options_page.js
+++ b/chrome/browser/resources/options2/options_page.js
@@ -696,12 +696,14 @@ cr.define('options', function() {
var text = bannerDiv.querySelector('.managed-prefs-text');
if (controlledByPolicy && !controlledByExtension) {
- text.textContent = templateData.policyManagedPrefsBannerText;
+ text.textContent =
+ loadTimeData.getString('policyManagedPrefsBannerText');
} else if (!controlledByPolicy && controlledByExtension) {
- text.textContent = templateData.extensionManagedPrefsBannerText;
- } else if (controlledByPolicy && controlledByExtension) {
text.textContent =
- templateData.policyAndExtensionManagedPrefsBannerText;
+ loadTimeData.getString('extensionManagedPrefsBannerText');
+ } else if (controlledByPolicy && controlledByExtension) {
+ text.textContent = loadTimeData.getString(
+ 'policyAndExtensionManagedPrefsBannerText');
}
}
},
« no previous file with comments | « chrome/browser/resources/options2/options.js ('k') | chrome/browser/resources/options2/password_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698