chore: remove last instances of base::Bind (#18178)
* chore: remove last instances of base::Bind * MessageBoxCallback is a OnceCallback * convert permission helepr cbs to Once * convert ResponseCallback to Once
This commit is contained in:
parent
96371b6d75
commit
9af5072115
23 changed files with 122 additions and 109 deletions
|
@ -523,15 +523,15 @@ void CommonWebContentsDelegate::DevToolsIndexPath(
|
|||
scoped_refptr<DevToolsFileSystemIndexer::FileSystemIndexingJob>(
|
||||
devtools_file_system_indexer_->IndexPath(
|
||||
file_system_path, excluded_folders,
|
||||
base::Bind(
|
||||
base::BindRepeating(
|
||||
&CommonWebContentsDelegate::OnDevToolsIndexingWorkCalculated,
|
||||
weak_factory_.GetWeakPtr(), request_id, file_system_path),
|
||||
base::Bind(&CommonWebContentsDelegate::OnDevToolsIndexingWorked,
|
||||
weak_factory_.GetWeakPtr(), request_id,
|
||||
file_system_path),
|
||||
base::Bind(&CommonWebContentsDelegate::OnDevToolsIndexingDone,
|
||||
weak_factory_.GetWeakPtr(), request_id,
|
||||
file_system_path)));
|
||||
base::BindRepeating(
|
||||
&CommonWebContentsDelegate::OnDevToolsIndexingWorked,
|
||||
weak_factory_.GetWeakPtr(), request_id, file_system_path),
|
||||
base::BindRepeating(
|
||||
&CommonWebContentsDelegate::OnDevToolsIndexingDone,
|
||||
weak_factory_.GetWeakPtr(), request_id, file_system_path)));
|
||||
}
|
||||
|
||||
void CommonWebContentsDelegate::DevToolsStopIndexing(int request_id) {
|
||||
|
@ -553,8 +553,9 @@ void CommonWebContentsDelegate::DevToolsSearchInPath(
|
|||
}
|
||||
devtools_file_system_indexer_->SearchInPath(
|
||||
file_system_path, query,
|
||||
base::Bind(&CommonWebContentsDelegate::OnDevToolsSearchCompleted,
|
||||
weak_factory_.GetWeakPtr(), request_id, file_system_path));
|
||||
base::BindRepeating(&CommonWebContentsDelegate::OnDevToolsSearchCompleted,
|
||||
weak_factory_.GetWeakPtr(), request_id,
|
||||
file_system_path));
|
||||
}
|
||||
|
||||
void CommonWebContentsDelegate::OnDevToolsIndexingWorkCalculated(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue