From 6742a73927bd97177675a84570cdbf97ec970688 Mon Sep 17 00:00:00 2001 From: squalus Date: Mon, 2 Apr 2018 21:33:16 -0700 Subject: [PATCH] windows: Fix crash opening incognito mode --- .../windows-fix-building-without-safebrowsing.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/resources/patches/ungoogled-chromium/windows/windows-fix-building-without-safebrowsing.patch b/resources/patches/ungoogled-chromium/windows/windows-fix-building-without-safebrowsing.patch index 907c56e6..595050cb 100644 --- a/resources/patches/ungoogled-chromium/windows/windows-fix-building-without-safebrowsing.patch +++ b/resources/patches/ungoogled-chromium/windows/windows-fix-building-without-safebrowsing.patch @@ -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_); + } +