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

Unified Diff: chrome/browser/io_thread.cc

Issue 2030193004: Add a policy for disabling the stripping of PAC URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add better documentatiob 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/io_thread.h ('k') | chrome/browser/net/proxy_service_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 063d3700e134484fcc2db69345e82cb1428b3bde..0a2e396321045800cc44d626f714386cf02e9957 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -377,6 +377,10 @@ IOThread::IOThread(
local_state);
quick_check_enabled_.MoveToThread(io_thread_proxy);
+ pac_https_url_stripping_enabled_.Init(prefs::kPacHttpsUrlStrippingEnabled,
+ local_state);
+ pac_https_url_stripping_enabled_.MoveToThread(io_thread_proxy);
+
is_spdy_allowed_by_policy_ =
policy_service
->GetPolicies(policy::PolicyNamespace(policy::POLICY_DOMAIN_CHROME,
@@ -824,6 +828,7 @@ void IOThread::RegisterPrefs(PrefRegistrySimple* registry) {
data_reduction_proxy::RegisterPrefs(registry);
registry->RegisterBooleanPref(prefs::kBuiltInDnsClientEnabled, true);
registry->RegisterBooleanPref(prefs::kQuickCheckEnabled, true);
+ registry->RegisterBooleanPref(prefs::kPacHttpsUrlStrippingEnabled, true);
}
void IOThread::UpdateServerWhitelist() {
@@ -933,7 +938,7 @@ void IOThread::InitSystemRequestContextOnIOThread() {
net_log_, globals_->proxy_script_fetcher_context.get(),
globals_->system_network_delegate.get(),
std::move(system_proxy_config_service_), command_line,
- quick_check_enabled_.GetValue());
+ WpadQuickCheckEnabled(), PacHttpsUrlStrippingEnabled());
globals_->system_request_context.reset(
ConstructSystemRequestContext(globals_, params_, net_log_));
@@ -951,6 +956,14 @@ void IOThread::UnregisterSTHObserver(net::ct::STHObserver* observer) {
chrome_browser_net::GetGlobalSTHDistributor()->UnregisterObserver(observer);
}
+bool IOThread::WpadQuickCheckEnabled() const {
+ return quick_check_enabled_.GetValue();
+}
+
+bool IOThread::PacHttpsUrlStrippingEnabled() const {
+ return pac_https_url_stripping_enabled_.GetValue();
+}
+
// static
net::URLRequestContext* IOThread::ConstructSystemRequestContext(
IOThread::Globals* globals,
« no previous file with comments | « chrome/browser/io_thread.h ('k') | chrome/browser/net/proxy_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698