Android: chromoting OAuthToken AsyncTasks explicitly on SERIAL_EXECUTOR
Currently, AsyncTask.execute() defaults to the SERIAL_EXECUTOR. This exector is good for preventing concurrency errors since it guarantees serial execution, but bad for performance since the entire app shares this single queue. Looking at this code, I don't think we can escape the SERIAL_EXECUTOR here, since there appears to be non-thread-safe things happening in the AsyncTasks, and no guarantee they won't get scheduled at the same time. Bug: 869907 Change-Id: I7c1e1a74e48c2d2e774d71e04d89a83c02562e5b Reviewed-on: https://chromium-review.googlesource.com/1162662Reviewed-by:Yuwei Huang <yuweih@chromium.org> Commit-Queue: Sam Maier <smaier@chromium.org> Cr-Commit-Position: refs/heads/master@{#580636}
Showing
Please register or sign in to comment