diff --git a/brightray/browser/browser_main_parts.cc b/brightray/browser/browser_main_parts.cc index 8bcaf3621b11..c41a6a3a6f37 100644 --- a/brightray/browser/browser_main_parts.cc +++ b/brightray/browser/browser_main_parts.cc @@ -23,6 +23,10 @@ void BrowserMainParts::PreMainMessageLoopRun() { content::WebUIControllerFactory::RegisterFactory(web_ui_controller_factory_.get()); } +void BrowserMainParts::PostMainMessageLoopRun() { + browser_context_.reset(); +} + BrowserContext* BrowserMainParts::CreateBrowserContext() { return new BrowserContext; } diff --git a/brightray/browser/browser_main_parts.h b/brightray/browser/browser_main_parts.h index ca80e557654f..210ff7e31ba0 100644 --- a/brightray/browser/browser_main_parts.h +++ b/brightray/browser/browser_main_parts.h @@ -31,6 +31,7 @@ protected: #endif virtual void PreMainMessageLoopRun() OVERRIDE; + virtual void PostMainMessageLoopRun() OVERRIDE; private: scoped_ptr browser_context_;