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());
|
content::WebUIControllerFactory::RegisterFactory(web_ui_controller_factory_.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BrowserMainParts::PostMainMessageLoopRun() {
|
||||||
|
browser_context_.reset();
|
||||||
|
}
|
||||||
|
|
||||||
BrowserContext* BrowserMainParts::CreateBrowserContext() {
|
BrowserContext* BrowserMainParts::CreateBrowserContext() {
|
||||||
return new BrowserContext;
|
return new BrowserContext;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,7 @@ protected:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
virtual void PreMainMessageLoopRun() OVERRIDE;
|
virtual void PreMainMessageLoopRun() OVERRIDE;
|
||||||
|
virtual void PostMainMessageLoopRun() OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
scoped_ptr<BrowserContext> browser_context_;
|
scoped_ptr<BrowserContext> browser_context_;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue