commit | 22ce5e5d83e619837fe7db7bba8380b656a73805 | [log] [tgz] |
---|---|---|
author | Hai Zhang <zhanghai@google.com> | Thu Apr 18 12:08:30 2019 +0800 |
committer | Hai Zhang <zhanghai@google.com> | Thu Apr 18 12:12:09 2019 +0800 |
tree | d73d5cfe9eae88f9192eae6ac0ab42be2418758f | |
parent | 30550e1f3edcca22b4e491ea0a9b10687358964b [diff] |
Run performInitialGrantsIfNecessaryAsync() on main thread. performInitialGrantsIfNecessaryAsync() is already made asynchronous, so it is no longer necessary to post it to a thread pool. After this change both this method and onRemoveUser() can run on the main thread, so that we won't run into a race condition with a destroyed user state. Bug: 130738316 Test: presubmit Change-Id: I9f6e4d9badddf5396c5a9aee683b67739c82884a