Commit 83d1d1c2 authored by Andrew Grieve's avatar Andrew Grieve Committed by Commit Bot

Compress IDR_DEFAULT_POPULAR_SITES_JSON

Bug: 982762
Change-Id: If26bd60eaeda65d27870591908efc84981cc581f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1836892
Commit-Queue: Dan Beam <dbeam@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: default avatarDan Beam <dbeam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#702580}
parent af81abb4
......@@ -220,7 +220,7 @@ base::Value DefaultPopularSites() {
}
std::unique_ptr<base::ListValue> sites =
base::ListValue::From(base::JSONReader::ReadDeprecated(
ui::ResourceBundle::GetSharedInstance().GetRawDataResource(
ui::ResourceBundle::GetSharedInstance().DecompressDataResource(
IDR_DEFAULT_POPULAR_SITES_JSON)));
DCHECK(sites);
for (base::Value& site : *sites) {
......
......@@ -3,7 +3,7 @@
<if expr="is_android or is_ios">
<if expr="_google_chrome">
<then>
<include name="IDR_DEFAULT_POPULAR_SITES_JSON" file="../ntp_tiles/resources/internal/default_popular_sites.json" type="BINDATA" />
<include name="IDR_DEFAULT_POPULAR_SITES_JSON" file="../ntp_tiles/resources/internal/default_popular_sites.json" type="BINDATA" compress="gzip" />
<include name="IDR_DEFAULT_POPULAR_SITES_ICON0" file="../ntp_tiles/resources/internal/icon0.webp" type="BINDATA" />
<include name="IDR_DEFAULT_POPULAR_SITES_ICON1" file="../ntp_tiles/resources/internal/icon1.webp" type="BINDATA" />
<include name="IDR_DEFAULT_POPULAR_SITES_ICON2" file="../ntp_tiles/resources/internal/icon2.webp" type="BINDATA" />
......@@ -15,7 +15,7 @@
</then>
<else>
<!-- Fall back to a local resource so popular sites can be tested properly. -->
<include name="IDR_DEFAULT_POPULAR_SITES_JSON" file="../ntp_tiles/resources/default_popular_sites.json" type="BINDATA" />
<include name="IDR_DEFAULT_POPULAR_SITES_JSON" file="../ntp_tiles/resources/default_popular_sites.json" type="BINDATA" compress="gzip" />
</else>
</if>
</if>
......
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