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

Unified Diff: chrome/browser/ui/webui/md_history_ui.cc

Issue 2590383004: MD History: gzip vulcanized resources via compress="gzip" (Closed)
Patch Set: Created 4 years 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/browser/browser_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/md_history_ui.cc
diff --git a/chrome/browser/ui/webui/md_history_ui.cc b/chrome/browser/ui/webui/md_history_ui.cc
index 0859733b8107117020743d6cf10e140912905ad0..60fdf56b4c3de46159a619f5d34ecfac3767a973 100644
--- a/chrome/browser/ui/webui/md_history_ui.cc
+++ b/chrome/browser/ui/webui/md_history_ui.cc
@@ -150,6 +150,14 @@ content::WebUIDataSource* CreateMdHistoryUIHTMLSource(Profile* profile,
source->AddResourcePath("history.js", IDR_MD_HISTORY_HISTORY_JS);
#if BUILDFLAG(USE_VULCANIZE)
+ source->ExcludePathFromGzip("");
tsergeant 2016/12/21 02:05:45 Does this work with urls like /syncedTabs, which r
Dan Beam 2016/12/21 23:36:42 it does now!
tsergeant 2016/12/21 23:37:59 The failing test (which loads the URL chrome://his
+ source->ExcludePathFromGzip("constants.html");
+ source->ExcludePathFromGzip("constants.js");
+ source->ExcludePathFromGzip("history.js");
+ source->ExcludePathFromGzip("images/100/sign_in_promo.jpg");
+ source->ExcludePathFromGzip("images/200/sign_in_promo.jpg");
+ source->UseGzipForAllPaths();
+
source->AddResourcePath("app.html",
IDR_MD_HISTORY_APP_VULCANIZED_HTML);
source->AddResourcePath("app.crisper.js",
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698