Do not flush main thread tasks in ~ScopedTaskEnvironment.

Flushing main thread tasks in ~ScopedTaskEnvironment prevents
MessageLoop from being replaced with ScopedTaskEnvironment in v8
tests that don't expect tasks to run without an explicit call to
RunLoop::Run/RunUntilIdle.

BUG=708584

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


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