Skip to content
Commit 28765c8d authored by Evan Stade's avatar Evan Stade Committed by Chromium LUCI CQ
Browse files

[Code health] Convert ErrorCallback to OnceCallback.

This was recently marked as RepeatingCallback, but should actually be
OnceCallback, as it's fired at most once.

MTPDeviceDelegateImplLinux does at times try to pass this callback off
to more than one owner, however this is an implementation detail that
should not make it into the public API. To circumvent this hurdle, a
wrapper is introduced in MTPDeviceDelegateImplLinux.

Bug: 1152278
Change-Id: Ie00927fad8f8fa95961380fcd391e6b463263a23
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2598010


Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Commit-Queue: Evan Stade <estade@chromium.org>
Cr-Commit-Position: refs/heads/master@{#840231}
parent cbdae5ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment