Chromium Code Reviews| Index: net/url_request/url_request_context.cc |
| diff --git a/net/url_request/url_request_context.cc b/net/url_request/url_request_context.cc |
| index aa3ec913f4a4b3030e6ae39038e8eae2c479bc87..5fc4fbf33f560a769f02e2d1b716f02cdd14c26e 100644 |
| --- a/net/url_request/url_request_context.cc |
| +++ b/net/url_request/url_request_context.cc |
| @@ -31,7 +31,9 @@ URLRequestContext::URLRequestContext() |
| http_transaction_factory_(NULL), |
| job_factory_(NULL), |
| throttler_manager_(NULL), |
| - sdch_manager_(NULL), |
| + // For investigation of http://crbug.com/454198; restore when resolved. |
| + // sdch_manager_(NULL), |
| + have_sdch_manager_(false), |
| url_requests_(new std::set<const URLRequest*>) { |
| } |
| @@ -57,7 +59,13 @@ void URLRequestContext::CopyFrom(const URLRequestContext* other) { |
| set_http_transaction_factory(other->http_transaction_factory_); |
| set_job_factory(other->job_factory_); |
| set_throttler_manager(other->throttler_manager_); |
| - set_sdch_manager(other->sdch_manager_); |
| + // For investigation of http://crbug.com/454198; reset to set_sdch_manager() |
| + // when resolved. |
| + have_sdch_manager_ = other->have_sdch_manager_; |
| + if (have_sdch_manager_) { |
| + CHECK(other->sdch_manager_.get()); |
|
mmenke
2015/03/11 20:16:36
If you're going to have a CHECK here, you can just
Randy Smith (Not in Mondays)
2015/03/11 20:30:45
Good point; done.
|
| + sdch_manager_ = other->sdch_manager_; |
| + } |
| set_http_user_agent_settings(other->http_user_agent_settings_); |
| } |