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

Unified Diff: chrome/browser/resources/options2/content_settings.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/content_settings.js
diff --git a/chrome/browser/resources/options2/content_settings.js b/chrome/browser/resources/options2/content_settings.js
index 12afd10667c37860c16270e6ad431f4acebf2273..41e32cdb0bd5124f80be8dffaa64a301de7b8d87 100644
--- a/chrome/browser/resources/options2/content_settings.js
+++ b/chrome/browser/resources/options2/content_settings.js
@@ -16,7 +16,8 @@ cr.define('options', function() {
this.activeNavTab = null;
this.sessionRestoreEnabled = false;
this.sessionRestoreSelected = false;
- OptionsPage.call(this, 'content', templateData.contentSettingsPageTabTitle,
+ OptionsPage.call(this, 'content',
+ loadTimeData.getString('contentSettingsPageTabTitle'),
'content-settings-page');
// Keep track of the real value of the "clear on exit" preference. (The UI
@@ -62,7 +63,7 @@ cr.define('options', function() {
'/' + url);
uber.invokeMethodOnParent('setPath', {path: url});
uber.invokeMethodOnParent('setTitle',
- {title: templateData[hash + 'TabTitle']});
+ {title: loadTimeData.getString(hash + 'TabTitle')});
};
}
@@ -85,10 +86,10 @@ cr.define('options', function() {
// Remove from DOM instead of hiding so :last-of-type applies the style
// correctly.
var intentsSection = $('intents-section');
- if (!templateData.enable_web_intents && intentsSection)
+ if (!loadTimeData.getBoolean('enable_web_intents') && intentsSection)
intentsSection.parentNode.removeChild(intentsSection);
- if (templateData.enable_restore_session_state) {
+ if (loadTimeData.getBoolean('enable_restore_session_state')) {
this.sessionRestoreEnabled = true;
this.updateSessionRestoreContentSettings();
}

Powered by Google App Engine
This is Rietveld 408576698