OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/net/proxy_service_factory.h" | 5 #include "chrome/browser/net/proxy_service_factory.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 std::move(dhcp_proxy_script_fetcher), context->host_resolver(), | 181 std::move(dhcp_proxy_script_fetcher), context->host_resolver(), |
182 net_log, network_delegate); | 182 net_log, network_delegate); |
183 } | 183 } |
184 } else { | 184 } else { |
185 proxy_service = net::ProxyService::CreateUsingSystemProxyResolver( | 185 proxy_service = net::ProxyService::CreateUsingSystemProxyResolver( |
186 std::move(proxy_config_service), num_pac_threads, net_log); | 186 std::move(proxy_config_service), num_pac_threads, net_log); |
187 } | 187 } |
188 | 188 |
189 proxy_service->set_quick_check_enabled(quick_check_enabled); | 189 proxy_service->set_quick_check_enabled(quick_check_enabled); |
190 | 190 |
| 191 if (command_line.HasSwitch(switches::kUnsafePacUrl)) { |
| 192 proxy_service->set_sanitize_url_policy( |
| 193 net::ProxyService::SanitizeUrlPolicy::UNSAFE); |
| 194 } |
| 195 |
191 return proxy_service; | 196 return proxy_service; |
192 } | 197 } |
OLD | NEW |