Convert extensions tests from base::Closure
This CL converts a pattern in extensions tests where a RunLoop quit closure is bound to a callback argument. In most of these cases we can simply convert to a OnceClosure. printer_provider_apitest has one exception that's a RepeatingClosure because the API actually may call the callback multiple times. In this case, the quit closure must be copied so it must be a RepeatingClosure. Bug: 1152268 Change-Id: I4a201cbd78d818f1793b94a8c106d62bb59ba8f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2605647 Commit-Queue: David Bokan <bokan@chromium.org> Reviewed-by:Karan Bhatia <karandeepb@chromium.org> Cr-Commit-Position: refs/heads/master@{#840314}
Showing
Please register or sign in to comment