[CrOS PhoneHub] Fix MessageType endianness
Before this CL, MessageSenderImpl and MessageReceiverImpl assumed that the phone and Chrome OS device had the same endianness. This CL fixes the issue by converting from host to network endianness when sending messages and converting from network to host endianness when receiving messages. Bug: 1106937 Change-Id: Idaa3b56f9450030aaf2c5460a2cae18ec4869d82 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2453271 Auto-Submit: Kyle Horimoto <khorimoto@chromium.org> Commit-Queue: Regan Hsu <hsuregan@chromium.org> Reviewed-by:Jimmy Gong <jimmyxgong@chromium.org> Reviewed-by:
Regan Hsu <hsuregan@chromium.org> Cr-Commit-Position: refs/heads/master@{#814370}
Showing
Please register or sign in to comment