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

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

Issue 2058683002: Sanitize https:// URLs before sending them to PAC scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
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