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

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

Issue 2266693002: Implement "streaming" $i18n{} replacer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compress-webui2
Patch Set: Created 4 years, 4 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 | « content/browser/webui/web_ui_data_source_impl.h ('k') | net/filter/filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0b07bddf0043f85ecc50e78ef55699b85ba00dae..86469a5503b5d9b786bf66a80afaa24bdb347252 100644
--- a/content/browser/webui/web_ui_data_source_impl.cc
+++ b/content/browser/webui/web_ui_data_source_impl.cc
@@ -189,6 +189,10 @@ void WebUIDataSourceImpl::DisableI18nAndUseGzipForAllPaths() {
use_gzip_for_all_paths_ = true;
}
+const ui::TemplateReplacements* WebUIDataSourceImpl::GetTemplateReplacements() const {
+ return replacements_.empty() ? nullptr : &replacements_;
+}
+
std::string WebUIDataSourceImpl::GetSource() const {
return source_name_;
}
« no previous file with comments | « content/browser/webui/web_ui_data_source_impl.h ('k') | net/filter/filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698