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

Unified Diff: chrome/browser/profiles/profile_io_data.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/prefs/command_line_pref_store.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 11c06609c13b0d6c625f2246853ebf6ea48610b1..49e6b930bb1decd6029985550fc1947e8afdac26 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -387,7 +387,6 @@ void NotifyContextGettersOfShutdownOnIO(
void ProfileIOData::InitializeOnUIThread(Profile* profile) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
PrefService* pref_service = profile->GetPrefs();
- PrefService* local_state_pref_service = g_browser_process->local_state();
std::unique_ptr<ProfileParams> params(new ProfileParams);
params->path = profile->GetPath();
@@ -500,10 +499,6 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
signin_allowed_.MoveToThread(io_task_runner);
}
- quick_check_enabled_.Init(prefs::kQuickCheckEnabled,
- local_state_pref_service);
- quick_check_enabled_.MoveToThread(io_task_runner);
-
media_device_id_salt_ = new MediaDeviceIDSalt(pref_service, IsOffTheRecord());
network_prediction_options_.Init(prefs::kNetworkPredictionOptions,
@@ -1069,7 +1064,8 @@ void ProfileIOData::Init(
io_thread_globals->proxy_script_fetcher_context.get(),
io_thread_globals->system_network_delegate.get(),
std::move(profile_params_->proxy_config_service), command_line,
- quick_check_enabled_.GetValue());
+ io_thread->WpadQuickCheckEnabled(),
+ io_thread->PacHttpsUrlStrippingEnabled());
transport_security_state_.reset(new net::TransportSecurityState());
base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool();
transport_security_persister_.reset(
@@ -1279,7 +1275,6 @@ void ProfileIOData::ShutdownOnUIThread(
sync_disabled_.Destroy();
signin_allowed_.Destroy();
network_prediction_options_.Destroy();
- quick_check_enabled_.Destroy();
if (media_device_id_salt_.get())
media_device_id_salt_->ShutdownOnUIThread();
session_startup_pref_.Destroy();
« no previous file with comments | « chrome/browser/prefs/command_line_pref_store.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698