Index: ui/base/template_expressions.h |
diff --git a/ui/base/template_expressions.h b/ui/base/template_expressions.h |
index ff14ee1b719149e0286a24c728ec4b64a28a8d35..e0b50fb04ba94fef8752dd28a93e5cb0d145b8b8 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> ReplaceTemplateMap; |
Dan Beam
2016/01/20 22:34:38
nit: I18nTemplateMap? TemplateReplacements? Templa
dschuyler
2016/01/21 18:43:53
Done.
|
+ |
// 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 ReplaceTemplateMap& substitutions); |
} // namespace ui |