Convert ChromeManagementAPIDelegate to OnceCallback
The passed callback is stored and called from OnInstallPromptDone which is itself a callback passed to ShowDialog. ShowDialog is already a OnceCallback so this method will only be called once (and we convert the call to BindOnce). Further, we already clear the |callback_| member when calling it (using std::move) so this can be safely made a OnceCallback. Bug: 1152268 Change-Id: Ib1ad3d92c239403a35ad9d226304b6f92dfc80d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2601061Reviewed-by:Karan Bhatia <karandeepb@chromium.org> Commit-Queue: David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/master@{#838972}
Showing
Please register or sign in to comment