commit | 514c49d40b386bd0fc3e544257ef2ec13e458028 | [log] [tgz] |
---|---|---|
author | Alex Clarke <alexclarke@chromium.org> | Wed Nov 28 22:21:14 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Nov 28 22:21:14 2018 |
tree | 6bba0adfd805981d8c98b35b5beed17def2f745e | |
parent | 3da04090cb6de2f918a8c7433c19bfbe45b4bcb4 [diff] |
Use the SequenceManager in ScopedTaskEnvironment This is necessary because we want content::TestBrowserThreadBundle to own a BrowserUIThreadScheduler, but that also owns a ScopedTaskEnvironment and you can't have two SequenceManagers on the same thread. This patch allows ScopedTaskEnvironment to optionally work with an externally owned SequenceManager solving the problem. This implements https://docs.google.com/document/d/1y08C6JQ9Yta3EQXzwIqqIIKHq9500WV6CWFZzZfDx7I/edit?usp=drivesdk, We now have the ability to mock time on the UI thread. TBR=asvitkine@chromium.org,miu@chromium.org Bug: 863341, 891670, 708584 Change-Id: I96aa34c5cc8832c263621c2d9c228a8da4372c68 Reviewed-on: https://chromium-review.googlesource.com/c/1324391 Commit-Queue: Alex Clarke <alexclarke@chromium.org> Reviewed-by: Gabriel Charette <gab@chromium.org> Reviewed-by: François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#611895}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .