Make sure BrowserContext is always destroyed after WebContents
This commit is contained in:
parent
242508e22f
commit
118afab67b
3 changed files with 11 additions and 4 deletions
|
@ -182,7 +182,9 @@ CommonWebContentsDelegate::~CommonWebContentsDelegate() {
|
|||
}
|
||||
|
||||
void CommonWebContentsDelegate::InitWithWebContents(
|
||||
content::WebContents* web_contents) {
|
||||
content::WebContents* web_contents,
|
||||
AtomBrowserContext* browser_context) {
|
||||
browser_context_ = browser_context;
|
||||
web_contents->SetDelegate(this);
|
||||
|
||||
printing::PrintViewManagerBasic::CreateForWebContents(web_contents);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue