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:
parent
c4935acbb1
commit
e8de51a8dd
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue