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

Unified Diff: content/browser/accessibility/accessibility_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: content/browser/accessibility/accessibility_ui.cc
diff --git a/content/browser/accessibility/accessibility_ui.cc b/content/browser/accessibility/accessibility_ui.cc
index a8b077a7dc30dcd6d98a3825b2de64c18a10ac6b..2d409c6a892aa5370fb1c94b1e4a3b8c7640791e 100644
--- a/content/browser/accessibility/accessibility_ui.cc
+++ b/content/browser/accessibility/accessibility_ui.cc
@@ -204,8 +204,10 @@ AccessibilityUI::AccessibilityUI(WebUI* web_ui) : WebUIController(web_ui) {
html_source->SetRequestFilter(
base::Bind(&HandleRequestCallback,
web_ui->GetWebContents()->GetBrowserContext()));
- html_source->DisableI18nAndUseGzipForAllPaths();
- html_source->ExcludePathFromGzip(kDataFile);
+
+ std::unordered_set<std::string> exclude_from_gzip;
+ exclude_from_gzip.insert(kDataFile);
+ html_source->UseGzip(exclude_from_gzip);
BrowserContext* browser_context =
web_ui->GetWebContents()->GetBrowserContext();
« no previous file with comments | « chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.cc ('k') | content/browser/appcache/appcache_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698