Destroy ResourceContext on the IO thread

This matches content_shell and fixes a debug assertion (and maybe even a
crash).
This commit is contained in:
Adam Roben 2014-01-30 09:03:00 -05:00
parent c4935acbb1
commit e8de51a8dd

View file

@ -89,6 +89,9 @@ void BrowserContext::Initialize() {
}
BrowserContext::~BrowserContext() {
content::BrowserThread::DeleteSoon(content::BrowserThread::IO,
FROM_HERE,
resource_context_.release());
}
void BrowserContext::RegisterInternalPrefs(PrefRegistrySimple* registry) {