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

Unified Diff: content/browser/webui/web_ui_data_source_impl.cc

Issue 2391073005: WebUIDataSource::AddInteger (like AddBoolean/AddString) (Closed)
Patch Set: Created 4 years, 2 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: 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 5b258e359b3472cc3976cf05e2074a22a0f1f65c..78e4f18d224973b3b51fe6ce00620a8539acfc87 100644
--- a/content/browser/webui/web_ui_data_source_impl.cc
+++ b/content/browser/webui/web_ui_data_source_impl.cc
@@ -141,6 +141,10 @@ void WebUIDataSourceImpl::AddBoolean(const std::string& name, bool value) {
// replacements.
}
+void WebUIDataSourceImpl::AddInteger(const std::string& name, int value) {
+ localized_strings_.SetInteger(name, value);
+}
+
void WebUIDataSourceImpl::SetJsonPath(const std::string& path) {
json_path_ = path;
}

Powered by Google App Engine
This is Rietveld 408576698