summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/profile_io_data_qt.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/profile_io_data_qt.cpp b/src/core/profile_io_data_qt.cpp
index 8e6c8fed3..e22bac225 100644
--- a/src/core/profile_io_data_qt.cpp
+++ b/src/core/profile_io_data_qt.cpp
@@ -102,6 +102,12 @@ void ProfileIODataQt::shutdownOnUIThread()
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);
+ }
}
content::ResourceContext *ProfileIODataQt::resourceContext()