Disallow nesting on some BrowserThreads.

This CL disallows nesting on BrowserThreads that will be migrated
to TaskScheduler. Running a nested loop or calling
Add/RemoveNestingObserver on these threads will result in a crash.

To our knowledge, no code runs a nested loop on BrowserThreads that
will be migrated to TaskScheduler. This CL will help us confirm that
in the wild.

BUG=653916

Review-Url: https://codereview.chromium.org/2407313002
Cr-Commit-Position: refs/heads/master@{#424749}


CrOS-Libchrome-Original-Commit: 6d547b63b4176785a3caf5019c055173a28535e8
2 files changed
tree: a4ab72ea9b9504feba9ec0200e7e1cceebb070a8
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/