commit | 812f416e1368152c31893028eeee7e85bd25e827 | [log] [tgz] |
---|---|---|
author | fdoray <fdoray@chromium.org> | Tue May 16 15:34:51 2017 |
committer | Commit bot <commit-bot@chromium.org> | Tue May 16 15:34:51 2017 |
tree | 1e56d1fc1b82b907c770f1a26103255230ef81cf | |
parent | 1deb45d63a2d3df56f86f63bd5672219d8150ca9 [diff] |
Add ScopedTaskEnvironment::GetMainThreadTaskRunner(). This will avoid the need to store the main thread TaskRunner in a member variable in tests that need to post to the main thread from other threads (e.g. https://chromium.googlesource.com/chromium/src/+/134190a648fe48fed0486cf8889569863e4a544c/media/capture/video/video_capture_device_unittest.cc#109) BUG=708584 Review-Url: https://codereview.chromium.org/2885783002 Cr-Commit-Position: refs/heads/master@{#472111}