| Index: content/browser/webui/web_ui_data_source_impl.cc
|
| diff --git a/content/browser/webui/web_ui_data_source_impl.cc b/content/browser/webui/web_ui_data_source_impl.cc
|
| index a5751c48b657911be3f0694b0974dd12ebeade55..ea209cf90fe6ac8f90badfb21b60b444a863871e 100644
|
| --- a/content/browser/webui/web_ui_data_source_impl.cc
|
| +++ b/content/browser/webui/web_ui_data_source_impl.cc
|
| @@ -136,15 +136,8 @@ void WebUIDataSourceImpl::AddLocalizedString(const std::string& name,
|
| void WebUIDataSourceImpl::AddLocalizedStrings(
|
| const base::DictionaryValue& localized_strings) {
|
| localized_strings_.MergeDictionary(&localized_strings);
|
| -
|
| - for (base::DictionaryValue::Iterator it(localized_strings); !it.IsAtEnd();
|
| - it.Advance()) {
|
| - if (it.value().IsType(base::Value::Type::STRING)) {
|
| - std::string value;
|
| - it.value().GetAsString(&value);
|
| - replacements_[it.key()] = value;
|
| - }
|
| - }
|
| + ui::TemplateReplacementsFromDictionaryValue(localized_strings,
|
| + &replacements_);
|
| }
|
|
|
| void WebUIDataSourceImpl::AddBoolean(const std::string& name, bool value) {
|
|
|