[blink][mojo] Add ToCrossVariantMojoType helper
This eliminates the need to crack a mojo::Receiver/mojo::Remote into a message pipe and a handle to convert between Blink and non-Blink variants. This CL also includes a cleanup pass for the remaining uses of PassPipe() and PassHandle(), migrating them to either std::move() directly if possible, or use the new ToCrossVariantMojoType helper if applicable. Bug: 1059157 Change-Id: Id389d69ba32c17ce76942f16ca2b5b4fd26aab18 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2556565 Commit-Queue: Daniel Cheng <dcheng@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#830936}
Showing
Please register or sign in to comment