chore: eliminate a few uses of base::AdaptCallbackForRepeating() (#38293)
This commit is contained in:
parent
642950a00e
commit
2acb97aa85
5 changed files with 12 additions and 16 deletions
|
@ -126,9 +126,8 @@ void UsbChooserController::GotUsbDeviceList(
|
|||
|
||||
prevent_default =
|
||||
session->Emit("select-usb-device", details,
|
||||
base::AdaptCallbackForRepeating(
|
||||
base::BindOnce(&UsbChooserController::OnDeviceChosen,
|
||||
weak_factory_.GetWeakPtr())));
|
||||
base::BindRepeating(&UsbChooserController::OnDeviceChosen,
|
||||
weak_factory_.GetWeakPtr()));
|
||||
}
|
||||
if (!prevent_default) {
|
||||
RunCallback(/*device_info=*/nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue