From 4ed9f6398974bf2714084b9be65f81776c333906 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 10 Feb 2017 09:27:50 -0800 Subject: [PATCH] Cleanly shutdown browser context --- brightray/browser/browser_context.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/brightray/browser/browser_context.cc b/brightray/browser/browser_context.cc index e482b156f35c..2a17e3274532 100644 --- a/brightray/browser/browser_context.cc +++ b/brightray/browser/browser_context.cc @@ -102,6 +102,8 @@ BrowserContext::BrowserContext(const std::string& partition, bool in_memory) } BrowserContext::~BrowserContext() { + NotifyWillBeDestroyed(this); + ShutdownStoragePartitions(); BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, resource_context_.release());