Index: chrome/browser/net/proxy_service_factory.cc |
diff --git a/chrome/browser/net/proxy_service_factory.cc b/chrome/browser/net/proxy_service_factory.cc |
index 28b892768d137c32c2f16b27896c5cac0f4fb6e3..524856943de4f201473bead3728ba5f8142ac9ba 100644 |
--- a/chrome/browser/net/proxy_service_factory.cc |
+++ b/chrome/browser/net/proxy_service_factory.cc |
@@ -191,5 +191,10 @@ std::unique_ptr<net::ProxyService> ProxyServiceFactory::CreateProxyService( |
proxy_service->set_quick_check_enabled(quick_check_enabled); |
+ if (command_line.HasSwitch(switches::kUnsafePacUrl)) { |
+ proxy_service->set_sanitize_url_policy( |
+ net::ProxyService::SanitizeUrlPolicy::UNSAFE); |
+ } |
+ |
return proxy_service; |
} |