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

Unified Diff: chrome/renderer/plugins/plugin_placeholder.cc

Issue 12045022: Move code in ui\webui\jstemplate_builder.* to webui namespace for consistency. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/renderer/chrome_content_renderer_client.cc ('k') | ui/webui/jstemplate_builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/plugins/plugin_placeholder.cc
===================================================================
--- chrome/renderer/plugins/plugin_placeholder.cc (revision 177955)
+++ chrome/renderer/plugins/plugin_placeholder.cc (working copy)
@@ -116,8 +116,7 @@
l10n_util::GetStringUTF8(IDS_PLUGIN_NOT_SUPPORTED));
#endif
- std::string html_data =
- jstemplate_builder::GetI18nTemplateHtml(template_html, &values);
+ std::string html_data = webui::GetI18nTemplateHtml(template_html, &values);
// |missing_plugin| will destroy itself when its WebViewPlugin is going away.
PluginPlaceholder* missing_plugin = new PluginPlaceholder(
@@ -141,8 +140,7 @@
const base::StringPiece template_html(
ResourceBundle::GetSharedInstance().GetRawDataResource(
IDR_BLOCKED_PLUGIN_HTML));
- std::string html_data =
- jstemplate_builder::GetI18nTemplateHtml(template_html, &values);
+ std::string html_data = webui::GetI18nTemplateHtml(template_html, &values);
WebPluginParams params;
// |missing_plugin| will destroy itself when its WebViewPlugin is going away.
@@ -176,8 +174,7 @@
DCHECK(!template_html.empty()) << "unable to load template. ID: "
<< template_id;
- std::string html_data = jstemplate_builder::GetI18nTemplateHtml(
- template_html, &values);
+ std::string html_data = webui::GetI18nTemplateHtml(template_html, &values);
// |blocked_plugin| will destroy itself when its WebViewPlugin is going away.
PluginPlaceholder* blocked_plugin = new PluginPlaceholder(
@@ -199,8 +196,7 @@
DictionaryValue values;
values.SetString("video_id", GetYoutubeVideoId(params));
- std::string html_data = jstemplate_builder::GetI18nTemplateHtml(
- template_html, &values);
+ std::string html_data = webui::GetI18nTemplateHtml(template_html, &values);
// |youtube_plugin| will destroy itself when its WebViewPlugin is going away.
PluginPlaceholder* youtube_plugin = new PluginPlaceholder(
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | ui/webui/jstemplate_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698