chore: convert some more files from base::Bind (#17968)

This commit is contained in:
Shelley Vohr 2019-04-27 18:03:06 -07:00 committed by Cheng Zhao
parent 72baff1c88
commit fe618631f1
5 changed files with 20 additions and 16 deletions

View file

@ -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);