Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(767)

Side by Side Diff: chrome/browser/net/proxy_service_factory.cc

Issue 1996773002: Sanitize https:// URLs before sending them to PAC scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another ftp test with path Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 std::move(dhcp_proxy_script_fetcher), context->host_resolver(), 184 std::move(dhcp_proxy_script_fetcher), context->host_resolver(),
185 net_log, network_delegate); 185 net_log, network_delegate);
186 } 186 }
187 } else { 187 } else {
188 proxy_service = net::ProxyService::CreateUsingSystemProxyResolver( 188 proxy_service = net::ProxyService::CreateUsingSystemProxyResolver(
189 std::move(proxy_config_service), num_pac_threads, net_log); 189 std::move(proxy_config_service), num_pac_threads, net_log);
190 } 190 }
191 191
192 proxy_service->set_quick_check_enabled(quick_check_enabled); 192 proxy_service->set_quick_check_enabled(quick_check_enabled);
193 193
194 if (command_line.HasSwitch(switches::kUnsafePacUrl)) {
195 proxy_service->set_sanitize_url_policy(
196 net::ProxyService::SanitizeUrlPolicy::UNSAFE);
197 }
198
194 return proxy_service; 199 return proxy_service;
195 } 200 }
OLDNEW
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698