[Code health] Convert CreateSnapshotFileSuccessCallback to RepeatingCallback
It seems that this needs to be a RepeatingCallback instead of a OnceCallback. Because at the: chrome/browser/media_galleries/win/snapshot_file_details.h, this callback is used by SnapshotRequestInfo which is then owned by SnapshotFileDetails. The SnapshotFileDetails need to have const access to the SnapshotRequestInfo and hence the callback cannot be a OnceCallback. This is a code health CL, no behaviour change is expected. Bug: 1152278 Change-Id: Ia5eb65521cf100c38b47ae288daa41e2e432e897 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2595928 Commit-Queue: Xida Chen <xidachen@chromium.org> Reviewed-by:Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#838185}
Showing
Please register or sign in to comment