[CrOS PhoneHub] Implement receiving payloads and tweak sending payloads
Implement OnPayloadReceived() by: (1) Verifying that the received payload is represented in bytes rather than a file (the phone will never send a file). (2) Converting the received bytes into a string and passing it to the NearbyMessageReceiver interface. Tweak sending payloads by generating a random payload ID for each message sent rather than starting a count from 0 for each connection. Bug: 1149576, 1106937 Change-Id: I2310c17df2cd854648c141cda0066f83089a54d2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2543682 Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Reviewed-by:James Vecore <vecore@google.com> Cr-Commit-Position: refs/heads/master@{#828342}
Showing
Please register or sign in to comment