InspectableWebContents should be able to accept existing WebContents.
This commit is contained in:
parent
80cb76355c
commit
082aa61870
4 changed files with 9 additions and 4 deletions
|
@ -5,7 +5,11 @@
|
|||
namespace brightray {
|
||||
|
||||
InspectableWebContents* InspectableWebContents::Create(const content::WebContents::CreateParams& create_params) {
|
||||
return new InspectableWebContentsImpl(create_params);
|
||||
return new InspectableWebContentsImpl(content::WebContents::Create(create_params));
|
||||
}
|
||||
|
||||
InspectableWebContents* InspectableWebContents::Create(content::WebContents* web_contents) {
|
||||
return new InspectableWebContentsImpl(web_contents);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue