Chromium Code Reviews| Index: chrome/browser/ui/webui/chrome_web_ui_data_source.cc |
| diff --git a/chrome/browser/ui/webui/chrome_web_ui_data_source.cc b/chrome/browser/ui/webui/chrome_web_ui_data_source.cc |
| index d149aec9864931736841830e8b3b3449886342cb..baac06917f3595f2108294f46fb90cfd27ee2dd8 100644 |
| --- a/chrome/browser/ui/webui/chrome_web_ui_data_source.cc |
| +++ b/chrome/browser/ui/webui/chrome_web_ui_data_source.cc |
| @@ -28,6 +28,12 @@ void ChromeWebUIDataSource::AddLocalizedString(const std::string& name, |
| localized_strings_.SetString(name, l10n_util::GetStringUTF16(ids)); |
| } |
| +void ChromeWebUIDataSource::AddLocalizedString( |
|
James Hawkins
2011/06/30 23:02:58
What's wrong with AddString()?
sail
2011/07/01 01:16:18
Oh cool, that wasn't there when I wrote this code.
|
| + const std::string& name, |
| + const string16& localized_string) { |
| + localized_strings_.SetString(name, localized_string); |
| +} |
| + |
| void ChromeWebUIDataSource::SendLocalizedStringsAsJSON(int request_id) { |
| std::string template_data; |
| scoped_refptr<RefCountedBytes> response(new RefCountedBytes); |