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

Unified Diff: chrome/browser/ui/webui/md_downloads/md_downloads_ui.cc

Issue 2590793004: MD Downloads: 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
Index: chrome/browser/ui/webui/md_downloads/md_downloads_ui.cc
diff --git a/chrome/browser/ui/webui/md_downloads/md_downloads_ui.cc b/chrome/browser/ui/webui/md_downloads/md_downloads_ui.cc
index 99404cb1219d98bb2389f6a1e16c077354263f3e..c70dd2d1c9f7959047f14f4084ee315950ef0ec1 100644
--- a/chrome/browser/ui/webui/md_downloads/md_downloads_ui.cc
+++ b/chrome/browser/ui/webui/md_downloads/md_downloads_ui.cc
@@ -105,6 +105,13 @@ content::WebUIDataSource* CreateDownloadsUIHTMLSource(Profile* profile) {
IDR_MD_DOWNLOADS_2X_NO_DOWNLOADS_PNG);
#if BUILDFLAG(USE_VULCANIZE)
+ std::unordered_set<std::string> exclude_from_gzip;
+ exclude_from_gzip.insert("1x/incognito_marker.png");
+ exclude_from_gzip.insert("2x/incognito_marker.png");
+ exclude_from_gzip.insert("1x/no_downloads.png");
+ exclude_from_gzip.insert("2x/no_downloads.png");
+ source->UseGzip(exclude_from_gzip);
+
source->AddResourcePath("crisper.js", IDR_MD_DOWNLOADS_CRISPER_JS);
source->SetDefaultResource(IDR_MD_DOWNLOADS_VULCANIZED_HTML);
#else
« no previous file with comments | « chrome/browser/ui/webui/invalidations_ui.cc ('k') | chrome/browser/ui/webui/net_internals/net_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698