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

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

Issue 10916182: Refactor the about:version code out of about_ui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase + lei nit Created 8 years, 3 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
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_data_source.h ('k') | chrome/browser/ui/webui/version_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chrome_web_ui_data_source.cc
===================================================================
--- chrome/browser/ui/webui/chrome_web_ui_data_source.cc (revision 158638)
+++ chrome/browser/ui/webui/chrome_web_ui_data_source.cc (working copy)
@@ -34,6 +34,11 @@
localized_strings_.SetString(name, value);
}
+void ChromeWebUIDataSource::AddString(const std::string& name,
+ const std::string& value) {
+ localized_strings_.SetString(name, value);
+}
+
void ChromeWebUIDataSource::AddLocalizedString(const std::string& name,
int ids) {
localized_strings_.SetString(name, l10n_util::GetStringUTF16(ids));
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_data_source.h ('k') | chrome/browser/ui/webui/version_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698