refactor: make InitWithWebContents
and InspectableWebContents
take a unique_ptr
(#30920)
* refactor: make InitWithWebContents take a unique_ptr Signed-off-by: Darshan Sen <darshan.sen@postman.com> * refactor: make InspectableWebContents take a unique_ptr Signed-off-by: Darshan Sen <darshan.sen@postman.com>
This commit is contained in:
parent
6fdf350bea
commit
efa70131e2
4 changed files with 20 additions and 20 deletions
|
@ -432,7 +432,7 @@ class WebContents : public gin::Wrappable<WebContents>,
|
|||
|
||||
// Creates a InspectableWebContents object and takes ownership of
|
||||
// |web_contents|.
|
||||
void InitWithWebContents(content::WebContents* web_contents,
|
||||
void InitWithWebContents(std::unique_ptr<content::WebContents> web_contents,
|
||||
ElectronBrowserContext* browser_context,
|
||||
bool is_guest);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue