chore: convert more files away from base::Bind (#18121)
* chore: convert more files away from base::Bind * use BindOnce for JsAsker
This commit is contained in:
parent
c25c31e018
commit
0755857a0c
24 changed files with 86 additions and 71 deletions
|
@ -160,8 +160,9 @@ void ZoomLevelDelegate::InitHostZoomMap(content::HostZoomMap* host_zoom_map) {
|
|||
// by calls to HostZoomMap::SetZoomLevelForHost().
|
||||
ExtractPerHostZoomLevels(host_zoom_dictionary);
|
||||
}
|
||||
zoom_subscription_ = host_zoom_map_->AddZoomLevelChangedCallback(base::Bind(
|
||||
&ZoomLevelDelegate::OnZoomLevelChanged, base::Unretained(this)));
|
||||
zoom_subscription_ =
|
||||
host_zoom_map_->AddZoomLevelChangedCallback(base::BindRepeating(
|
||||
&ZoomLevelDelegate::OnZoomLevelChanged, base::Unretained(this)));
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue