summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ssl
diff options
context:
space:
mode:
authorarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 00:40:25 +0000
committerarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 00:40:25 +0000
commit7cd22a5102842cfbb51e06c626d769d81bb78210 (patch)
tree3a4ba627dc1589201cdb659d2aaa0d99c78111ed /chrome/browser/ssl
parent76f565227a89e88b6a0a32bf36cc5c01f6e418ca (diff)
downloadchromium_src-7cd22a5102842cfbb51e06c626d769d81bb78210.zip
chromium_src-7cd22a5102842cfbb51e06c626d769d81bb78210.tar.gz
chromium_src-7cd22a5102842cfbb51e06c626d769d81bb78210.tar.bz2
This provides a simpler js template engine than JsTemplate. It has been
optimized for the way we do internationalization with JST before and is about 4 times faster (average 4.8ms vs 22.8ms) for the history page. The syntax for this is very similar to JsTemplates. It uses the attributes i18n-values and i18n-content which worls like jsvalues and jscontent except that it does not allow arbitrary expressions. BUG=None TEST=All UI pages should work as before Review URL: http://codereview.chromium.org/149420 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20590 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ssl')
-rw-r--r--chrome/browser/ssl/ssl_blocking_page.cc2
-rw-r--r--chrome/browser/ssl/ssl_policy.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ssl/ssl_blocking_page.cc b/chrome/browser/ssl/ssl_blocking_page.cc
index e7fe5bc..5d3e821 100644
--- a/chrome/browser/ssl/ssl_blocking_page.cc
+++ b/chrome/browser/ssl/ssl_blocking_page.cc
@@ -85,7 +85,7 @@ std::string SSLBlockingPage::GetHTMLContents() {
ResourceBundle::GetSharedInstance().GetRawDataResource(
IDR_SSL_ROAD_BLOCK_HTML));
- return jstemplate_builder::GetTemplateHtml(html, &strings, "template_root");
+ return jstemplate_builder::GetI18nTemplateHtml(html, &strings);
}
void SSLBlockingPage::UpdateEntry(NavigationEntry* entry) {
diff --git a/chrome/browser/ssl/ssl_policy.cc b/chrome/browser/ssl/ssl_policy.cc
index d1b3bf3..4efad66 100644
--- a/chrome/browser/ssl/ssl_policy.cc
+++ b/chrome/browser/ssl/ssl_policy.cc
@@ -293,8 +293,8 @@ void SSLPolicy::ShowErrorPage(SSLCertErrorHandler* handler) {
ResourceBundle::GetSharedInstance().GetRawDataResource(
IDR_SSL_ERROR_HTML));
- std::string html_text(jstemplate_builder::GetTemplateHtml(html, &strings,
- "template_root"));
+ std::string html_text(jstemplate_builder::GetI18nTemplateHtml(html,
+ &strings));
TabContents* tab = handler->GetTabContents();
int cert_id = CertStore::GetSharedInstance()->StoreCert(