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