diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/profile_io_data_qt.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/profile_io_data_qt.cpp b/src/core/profile_io_data_qt.cpp index c6d5e6763..bc256bb08 100644 --- a/src/core/profile_io_data_qt.cpp +++ b/src/core/profile_io_data_qt.cpp @@ -101,17 +101,19 @@ void ProfileIODataQt::shutdownOnUIThread() if (m_cookieDelegate) m_cookieDelegate->unsetMojoCookieManager(); m_proxyConfigMonitor.reset(); - bool posted = content::BrowserThread::DeleteSoon(content::BrowserThread::IO, FROM_HERE, this); - if (!posted) { - qWarning() << "Could not delete ProfileIODataQt on io thread !"; - delete this; - } + if (m_clearHttpCacheInProgress) { m_clearHttpCacheInProgress = false; content::BrowsingDataRemover *remover = content::BrowserContext::GetBrowsingDataRemover(m_profileAdapter->profile()); remover->RemoveObserver(&m_removerObserver); } + + bool posted = content::BrowserThread::DeleteSoon(content::BrowserThread::IO, FROM_HERE, this); + if (!posted) { + qWarning() << "Could not delete ProfileIODataQt on io thread !"; + delete this; + } } content::ResourceContext *ProfileIODataQt::resourceContext() |