Merge pull request #32 from brightray/appcache-hang
Fix a hang on quit when application cache is used
This commit is contained in:
commit
bd02203151
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -31,6 +31,7 @@ protected:
|
|||
#endif
|
||||
|
||||
virtual void PreMainMessageLoopRun() OVERRIDE;
|
||||
virtual void PostMainMessageLoopRun() OVERRIDE;
|
||||
|
||||
private:
|
||||
scoped_ptr<BrowserContext> browser_context_;
|
||||
|
|
Loading…
Reference in a new issue