This change modifies the message_loop so one can create UI message_loops with a custom message_pump.
This change is needed to support the embedded case where Chromium runs inside a foreign host application. One example of this is the CEF project. See https://bitbucket.org/chromiumembedded/cef/issues/1805/improve-support-for-a-host-owned-message.
In the embedded case the host runs the OS message loop and the UI message_loop needs to delegate back to the host without pumping messages inside the standard UI message_pump.

BUG=576536

Review URL: https://codereview.chromium.org/1582123002

Cr-Commit-Position: refs/heads/master@{#372265}


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