[CrOS MultiDevice] DeviceSync: Update GetSyncedDevices() return type.
Previously, GetSyncedDevices() returned an array of RemoteDevice structs (in error cases, an empty list was returned). This was problematic because a client of this service had no way of differentiating between the case where there actually are no synced devices and an error case. This CL changes the return type to be a nullable array of RemoteDevice structs; now, in error cases, null is returned instead of an empty list. Bug: 824568, 752273 Change-Id: I6cfaa3933730beeb36082c8351d0f5b5ade0b086 Reviewed-on: https://chromium-review.googlesource.com/1020290 Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Reviewed-by:Ryan Hansberry <hansberry@chromium.org> Reviewed-by:
Jeremy Klein <jlklein@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#553365}
Showing
Please register or sign in to comment