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

Unified Diff: ui/base/webui/web_ui_util.cc

Issue 2826643002: Convert Incognito New Tab Page from i18n-* (JS) to $i18n{} (C++) (Closed)
Patch Set: todo Created 3 years, 8 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 | « ui/base/webui/web_ui_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/webui/web_ui_util.cc
diff --git a/ui/base/webui/web_ui_util.cc b/ui/base/webui/web_ui_util.cc
index 85670e715e3be54af61161fde376dd4b5f0fda0f..8b04a37c6d2bbaed7233477efe56765d635ab97f 100644
--- a/ui/base/webui/web_ui_util.cc
+++ b/ui/base/webui/web_ui_util.cc
@@ -123,6 +123,14 @@ void SetLoadTimeDataDefaults(const std::string& app_locale,
localized_strings->SetString("textdirection", GetTextDirection());
}
+void SetLoadTimeDataDefaults(const std::string& app_locale,
+ ui::TemplateReplacements* replacements) {
+ (*replacements)["fontfamily"] = GetFontFamily();
+ (*replacements)["fontsize"] = GetFontSize();
+ (*replacements)["language"] = l10n_util::GetLanguage(app_locale);
+ (*replacements)["textdirection"] = GetTextDirection();
+}
+
std::string GetWebUiCssTextDefaults(base::StringPiece css_template) {
ui::TemplateReplacements placeholders;
placeholders["textDirection"] = GetTextDirection();
« no previous file with comments | « ui/base/webui/web_ui_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698