| Index: ui/base/template_expressions.h
|
| diff --git a/ui/base/template_expressions.h b/ui/base/template_expressions.h
|
| index 2531d96af20cea2a88c907d579e19e88c6263556..ae52aa661be1e590af2e5b974fc03778b90a0e7d 100644
|
| --- a/ui/base/template_expressions.h
|
| +++ b/ui/base/template_expressions.h
|
| @@ -14,11 +14,22 @@
|
| #include "base/strings/string_piece.h"
|
| #include "ui/base/ui_base_export.h"
|
|
|
| +namespace base {
|
| +class DictionaryValue;
|
| +}
|
| +
|
| namespace ui {
|
|
|
| // Map of strings for template replacement in |ReplaceTemplateExpressions|.
|
| typedef std::map<const std::string, std::string> TemplateReplacements;
|
|
|
| +// Convert a dictionary to a replacement map. This helper function is to assist
|
| +// migration to using TemplateReplacements directly (which is preferred).
|
| +// TODO(dschuyler): remove this function by using TemplateReplacements directly.
|
| +UI_BASE_EXPORT void TemplateReplacementsFromDictionaryValue(
|
| + const base::DictionaryValue& dictionary,
|
| + TemplateReplacements* replacements);
|
| +
|
| // Replace $i18n*{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.
|
|
|