Merge pull request #384 from squalus/win-incognito-crash

windows: Fix crash opening incognito mode
This commit is contained in:
Eloston
2018-04-03 05:43:51 +00:00
committed by GitHub
@@ -314,3 +314,16 @@
io_data_->InitializeOnUIThread(profile_);
}
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -154,10 +154,6 @@ void OffTheRecordProfileIOData::Handle::
// Set initialized_ to true at the beginning in case any of the objects
// below try to get the ResourceContext pointer.
initialized_ = true;
- io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled,
- profile_->GetPrefs());
- io_data_->safe_browsing_enabled()->MoveToThread(
- BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
io_data_->InitializeOnUIThread(profile_);
}