Commit 449a0cfe authored by Andrew Grieve's avatar Andrew Grieve Committed by Commit Bot

Compress IDR_PRINT_HEADER_FOOTER_TEMPLATE_PAGE

Bug: 982762
Change-Id: I66b5c8ab536e9c1931776167f7fc9b390e68617d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1837199
Commit-Queue: Lei Zhang <thestig@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#702433}
parent fa4d7855
...@@ -722,8 +722,9 @@ void PrintRenderFrameHelper::PrintHeaderAndFooter( ...@@ -722,8 +722,9 @@ void PrintRenderFrameHelper::PrintHeaderAndFooter(
blink::WebWidgetClient web_widget_client; blink::WebWidgetClient web_widget_client;
blink::WebFrameWidget::CreateForMainFrame(&web_widget_client, frame); blink::WebFrameWidget::CreateForMainFrame(&web_widget_client, frame);
base::Value html(ui::ResourceBundle::GetSharedInstance().GetRawDataResource( base::Value html(
IDR_PRINT_HEADER_FOOTER_TEMPLATE_PAGE)); ui::ResourceBundle::GetSharedInstance().DecompressDataResource(
IDR_PRINT_HEADER_FOOTER_TEMPLATE_PAGE));
// Load page with script to avoid async operations. // Load page with script to avoid async operations.
ExecuteScript(frame, kPageLoadScriptFormat, html); ExecuteScript(frame, kPageLoadScriptFormat, html);
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<grit-part> <grit-part>
<if expr="enable_basic_printing"> <if expr="enable_basic_printing">
<include name="IDR_PRINT_HEADER_FOOTER_TEMPLATE_PAGE" file="../printing/resources/print_header_footer_template_page.html" flattenhtml="true" allowexternalscript="false" type="BINDATA" /> <include name="IDR_PRINT_HEADER_FOOTER_TEMPLATE_PAGE" file="../printing/resources/print_header_footer_template_page.html" flattenhtml="true" allowexternalscript="false" type="BINDATA" compress="gzip" />
</if> </if>
</grit-part> </grit-part>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment