Revert of RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. (patchset #3 id:40001 of https://codereview.chromium.org/2690183002/ )

Reason for revert:
Breaks some DBUS code that requests for a message loop

Original issue's description:
> RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk.
>
> The addition of AssertWaitAllowed in BrowserMainLoop::ShutdownThreadsAndCleanUp()
> is required because joining is a "wait" operation. It wasn't required
> before because PlatformThread::Join (platform_thread_posix.cc) actually still
> does AssertIOAllowed() instead of AssertWaitAllowed() for legacy reasons
> (and I/O is allowed in shutdown already). But this CL enables the redirection
> which uses a WaitableEvent to mimic thread join (ref. BrowserThreadImpl::StopRedirectionOfThreadID():
> waiting on the exact same set of tasks it did prior to redirection).
>
> BUG=653916
>
> Review-Url: https://codereview.chromium.org/2690183002
> Cr-Commit-Position: refs/heads/master@{#461481}
> Committed: https://chromium.googlesource.com/chromium/src/+/b6d0c9a06ab573af760763fcd7ecf76ae2c87695

TBR=jam@chromium.org,rkaplow@chromium.org,gab@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=653916, 707986

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


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