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

Unified Diff: net/filter/filter.cc

Issue 138533008: If SDCH is disabled, don't add an SDCH filter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/filter/filter.cc
diff --git a/net/filter/filter.cc b/net/filter/filter.cc
index 93583c1e6ef6609e8fd298b73ff186c0cf7e162b..244abaea10eead6e52ac95e5b52af3862c6f64ff 100644
--- a/net/filter/filter.cc
+++ b/net/filter/filter.cc
@@ -369,7 +369,10 @@ Filter* Filter::PrependNewFilter(FilterType type_id,
break;
case FILTER_TYPE_SDCH:
case FILTER_TYPE_SDCH_POSSIBLE:
- first_filter.reset(InitSdchFilter(type_id, filter_context, buffer_size));
+ if (SdchManager::Global() && SdchManager::sdch_enabled()) {
+ first_filter.reset(
+ InitSdchFilter(type_id, filter_context, buffer_size));
+ }
break;
default:
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698