Commit 9dcdbe36 authored by dbeam's avatar dbeam Committed by Commit bot

Compress chrome://history's resources

Theoretically shaves 78658 bytes[1] off of resources.pak's on-disk size
(which is especially helpful on Android).

R=agrieve@chromium.org,smaier@chromium.org
BUG=619091

[1] https://docs.google.com/spreadsheets/d/1iHF05utMcECxc8tb3ziHQlEJmXlk98-PFWhkGoY545Q/edit

Review-Url: https://codereview.chromium.org/2152143002
Cr-Commit-Position: refs/heads/master@{#419110}
parent 64d0537a
...@@ -215,8 +215,9 @@ ...@@ -215,8 +215,9 @@
<include name="IDR_HELP_PAGE_JS" file="resources\help\help_page.js" flattenhtml="true" type="BINDATA" /> <include name="IDR_HELP_PAGE_JS" file="resources\help\help_page.js" flattenhtml="true" type="BINDATA" />
<include name="IDR_CHANNEL_CHANGE_PAGE_JS" file="resources\help\channel_change_page.js" flattenhtml="true" type="BINDATA" /> <include name="IDR_CHANNEL_CHANGE_PAGE_JS" file="resources\help\channel_change_page.js" flattenhtml="true" type="BINDATA" />
</if> </if>
<include name="IDR_HISTORY_HTML" file="resources\history\history.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" /> <include name="IDR_HISTORY_HTML" file="resources\history\history.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" compress="gzip" />
<include name="IDR_HISTORY_JS" file="resources\history\history.js" flattenhtml="true" type="BINDATA" /> <include name="IDR_HISTORY_JS" file="resources\history\history.js" flattenhtml="true" type="BINDATA" compress="gzip" />
<include name="IDR_OTHER_DEVICES_JS" file="resources\history\other_devices.js" flattenhtml="true" type="BINDATA" compress="gzip" />
<if expr="not is_android and not is_ios"> <if expr="not is_android and not is_ios">
<include name="IDR_MD_HISTORY_CONSTANTS_HTML" file="resources\md_history\constants.html" type="BINDATA" /> <include name="IDR_MD_HISTORY_CONSTANTS_HTML" file="resources\md_history\constants.html" type="BINDATA" />
...@@ -262,7 +263,6 @@ ...@@ -262,7 +263,6 @@
</if> </if>
</if> </if>
<include name="IDR_OTHER_DEVICES_JS" file="resources\history\other_devices.js" flattenhtml="true" type="BINDATA" />
<include name="IDR_IDENTITY_API_SCOPE_APPROVAL_MANIFEST" file="resources\identity_scope_approval_dialog\manifest.json" type="BINDATA" /> <include name="IDR_IDENTITY_API_SCOPE_APPROVAL_MANIFEST" file="resources\identity_scope_approval_dialog\manifest.json" type="BINDATA" />
<include name="IDR_NEW_INLINE_LOGIN_HTML" file="resources\inline_login\new_inline_login.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" /> <include name="IDR_NEW_INLINE_LOGIN_HTML" file="resources\inline_login\new_inline_login.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" />
<include name="IDR_INLINE_LOGIN_HTML" file="resources\inline_login\inline_login.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" /> <include name="IDR_INLINE_LOGIN_HTML" file="resources\inline_login\inline_login.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" />
......
...@@ -165,6 +165,7 @@ content::WebUIDataSource* CreateHistoryUIHTMLSource(Profile* profile) { ...@@ -165,6 +165,7 @@ content::WebUIDataSource* CreateHistoryUIHTMLSource(Profile* profile) {
source->AddResourcePath(kOtherDevicesJsFile, IDR_OTHER_DEVICES_JS); source->AddResourcePath(kOtherDevicesJsFile, IDR_OTHER_DEVICES_JS);
source->SetDefaultResource(IDR_HISTORY_HTML); source->SetDefaultResource(IDR_HISTORY_HTML);
source->DisableDenyXFrameOptions(); source->DisableDenyXFrameOptions();
source->DisableI18nAndUseGzipForAllPaths();
return source; return source;
} }
......
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