commit | cfc01961c69f8eaaef1ca9a5a354225e53ce1b9c | [log] [tgz] |
---|---|---|
author | mgiuca <mgiuca@chromium.org> | Thu May 11 11:59:27 2017 +0900 |
committer | Qijiang Fan <fqj@google.com> | Fri Jun 05 06:04:49 2020 +0900 |
tree | d0171db1b46afcbc4b78b3672079c3d1772cbd94 | |
parent | 7f276aa93ab0717a7f7693406185b05bacb3fc9e [diff] |
InstalledAppProviderImpl: Assert that code is run off the UI thread. Adds methods to ThreadUtils to support this: a new assertOnBackgroundThread to complement assertOnUiThread, as well as a way to disable these checks for testing (since the tests are single-threaded). BUG=710745 Review-Url: https://codereview.chromium.org/2810373002 Cr-Commit-Position: refs/heads/master@{#470786} CrOS-Libchrome-Original-Commit: 25a9390dce3a08a787c852a3d381322767dace3c