Commit 280f7621 authored by Andrew Grieve's avatar Andrew Grieve Committed by Commit Bot

Compress IDR_OFFLINE_PAGES_RENOVATIONS_JS

Bug: 982762
Change-Id: Ia67f95207bc5c9f107ee1f42a4d151e25792178e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1837198
Commit-Queue: Carlos Knippschild <carlosk@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: default avatarCarlos Knippschild <carlosk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#703415}
parent 1625a65b
......@@ -85,7 +85,7 @@ bool PageRenovationLoader::LoadSource() {
// Our script file is stored in the resource bundle. Get this script.
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
combined_source_ = base::UTF8ToUTF16(
rb.GetRawDataResource(IDR_OFFLINE_PAGES_RENOVATIONS_JS).as_string());
rb.DecompressDataResource(IDR_OFFLINE_PAGES_RENOVATIONS_JS));
// If built correctly, IDR_OFFLINE_PAGES_RENOVATIONS_JS should
// always exist in the resource pack and loading should never fail.
......
<?xml version="1.0" encoding="utf-8"?>
<grit-part>
<include name="IDR_OFFLINE_PAGES_RENOVATIONS_JS" file="../offline_pages/resources/renovations.js" type="BINDATA" />
<include name="IDR_OFFLINE_PAGES_RENOVATIONS_JS" file="../offline_pages/resources/renovations.js" type="BINDATA" compress="gzip" />
</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