Index: net/proxy/init_proxy_resolver.cc |
diff --git a/net/proxy/init_proxy_resolver.cc b/net/proxy/init_proxy_resolver.cc |
index 52c542113a4fccae7b5c47f55716da8d1be1b2f7..d2983b650543694ada3bbbc4b6a2a61664e2d861 100644 |
--- a/net/proxy/init_proxy_resolver.cc |
+++ b/net/proxy/init_proxy_resolver.cc |
@@ -371,6 +371,10 @@ void InitProxyResolver::Cancel() { |
break; |
} |
+ // This is safe to call in any state. |
+ if (dhcp_proxy_script_fetcher_) |
+ dhcp_proxy_script_fetcher_->Cancel(); |
+ |
DidCompleteInit(); |
} |