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

Unified Diff: net/filter/filter.cc

Issue 298063006: Make SdchManager per-profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments and changed test name. Created 6 years, 6 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 | « net/filter/filter.h ('k') | net/filter/mock_filter_context.h » ('j') | 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 ca6e51e6cdf8366b9559a11dcf7ae4c7b7732ac8..d77272a809d99412ad471cc97095adf4abb43f23 100644
--- a/net/filter/filter.cc
+++ b/net/filter/filter.cc
@@ -11,6 +11,7 @@
#include "net/base/mime_util.h"
#include "net/filter/gzip_filter.h"
#include "net/filter/sdch_filter.h"
+#include "net/url_request/url_request_context.h"
#include "url/gurl.h"
namespace {
@@ -373,7 +374,8 @@ Filter* Filter::PrependNewFilter(FilterType type_id,
break;
case FILTER_TYPE_SDCH:
case FILTER_TYPE_SDCH_POSSIBLE:
- if (SdchManager::Global() && SdchManager::sdch_enabled()) {
+ if (filter_context.GetURLRequestContext()->sdch_manager() &&
+ SdchManager::sdch_enabled()) {
first_filter.reset(
InitSdchFilter(type_id, filter_context, buffer_size));
}
« no previous file with comments | « net/filter/filter.h ('k') | net/filter/mock_filter_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698