Index: net/http/http_stream_factory_impl_job_controller.cc |
diff --git a/net/http/http_stream_factory_impl_job_controller.cc b/net/http/http_stream_factory_impl_job_controller.cc |
index b23470229c3543532a51f1e722091ef68a865467..986f9a36a9f4bf6215815d6a3b71b1acc59d26a6 100644 |
--- a/net/http/http_stream_factory_impl_job_controller.cc |
+++ b/net/http/http_stream_factory_impl_job_controller.cc |
@@ -892,8 +892,7 @@ void HttpStreamFactoryImpl::JobController::MaybeNotifyFactoryOfCompletion() { |
GURL HttpStreamFactoryImpl::JobController::ApplyHostMappingRules( |
const GURL& url, |
HostPortPair* endpoint) { |
- const HostMappingRules* mapping_rules = session_->params().host_mapping_rules; |
- if (mapping_rules && mapping_rules->RewriteHost(endpoint)) { |
+ if (session_->params().host_mapping_rules.RewriteHost(endpoint)) { |
url::Replacements<char> replacements; |
const std::string port_str = base::UintToString(endpoint->port()); |
replacements.SetPort(port_str.c_str(), url::Component(0, port_str.size())); |