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

Unified Diff: chrome/browser/ui/webui/chrome_web_ui_data_source.cc

Issue 7256002: Multi-Profiles: New Profile Setup UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 9 years, 6 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: 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);

Powered by Google App Engine
This is Rietveld 408576698