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
1 file changed
tree: d0171db1b46afcbc4b78b3672079c3d1772cbd94
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/