refactor: use std::make_unique/base::MakeRefCounted when possible (#29637)
This commit is contained in:
parent
ebf54d7cc0
commit
56ac67e059
5 changed files with 9 additions and 5 deletions
|
@ -655,7 +655,8 @@ WebContents::WebContents(v8::Isolate* isolate,
|
|||
: content::WebContentsObserver(web_contents.get()),
|
||||
type_(type),
|
||||
id_(GetAllWebContents().Add(this)),
|
||||
devtools_file_system_indexer_(new DevToolsFileSystemIndexer),
|
||||
devtools_file_system_indexer_(
|
||||
base::MakeRefCounted<DevToolsFileSystemIndexer>()),
|
||||
file_task_runner_(
|
||||
base::ThreadPool::CreateSequencedTaskRunner({base::MayBlock()}))
|
||||
#if BUILDFLAG(ENABLE_PRINTING)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue