From e8de51a8dd6e6c8f89dfba8c5f4f80fc63f3e5b2 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Thu, 30 Jan 2014 09:03:00 -0500 Subject: [PATCH] Destroy ResourceContext on the IO thread This matches content_shell and fixes a debug assertion (and maybe even a crash). --- brightray/browser/browser_context.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/brightray/browser/browser_context.cc b/brightray/browser/browser_context.cc index 230a8243386f..4970530d7bff 100644 --- a/brightray/browser/browser_context.cc +++ b/brightray/browser/browser_context.cc @@ -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) {