chore: convert some more files from base::Bind (#17968)
This commit is contained in:
parent
72baff1c88
commit
fe618631f1
5 changed files with 20 additions and 16 deletions
|
@ -46,7 +46,7 @@ void MenuViews::PopupAt(TopLevelWindow* window,
|
|||
|
||||
// Show the menu.
|
||||
int32_t window_id = window->weak_map_id();
|
||||
auto close_callback = base::Bind(
|
||||
auto close_callback = base::BindRepeating(
|
||||
&MenuViews::OnClosed, weak_factory_.GetWeakPtr(), window_id, callback);
|
||||
menu_runners_[window_id] =
|
||||
std::make_unique<MenuRunner>(model(), flags, close_callback);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue