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

Unified Diff: ui/base/template_expressions.h

Issue 1585923011: [Template Expressions] changing ${ leader to $i18n{ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review changes Created 4 years, 11 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: ui/base/template_expressions.h
diff --git a/ui/base/template_expressions.h b/ui/base/template_expressions.h
index ff14ee1b719149e0286a24c728ec4b64a28a8d35..a8ac908b18ffadf46e18077b42bd5d60b2694375 100644
--- a/ui/base/template_expressions.h
+++ b/ui/base/template_expressions.h
@@ -16,12 +16,15 @@
namespace ui {
+// Map of strings for template replacement in |ReplaceTemplateExpressions|.
+typedef std::map<const std::string, std::string> TemplateReplacements;
+
// Replace ${foo} in the format string with the value for the foo key in
// |subst|. If the key is not found in the |substitutions| that item will
// be unaltered.
UI_BASE_EXPORT std::string ReplaceTemplateExpressions(
base::StringPiece format_string,
- const std::map<base::StringPiece, std::string>& substitutions);
+ const TemplateReplacements& substitutions);
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698