Copy the callback instead of reference
I don't really see how this could be a problem, likely a bug of VS 2017?
This commit is contained in:
parent
46330ac2a9
commit
bc61f2eafa
4 changed files with 6 additions and 6 deletions
|
@ -74,7 +74,7 @@ void MenuViews::ClosePopupAt(int32_t window_id) {
|
|||
}
|
||||
}
|
||||
|
||||
void MenuViews::OnClosed(int32_t window_id, const base::Closure& callback) {
|
||||
void MenuViews::OnClosed(int32_t window_id, base::Closure callback) {
|
||||
menu_runners_.erase(window_id);
|
||||
callback.Run();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue