commit | 9994bac38c5c3210351b2d368d4435171b65a189 | [log] [tgz] |
---|---|---|
author | fdoray <fdoray@chromium.org> | Wed May 17 00:34:51 2017 +0900 |
committer | Qijiang Fan <fqj@google.com> | Fri Jun 05 06:07:48 2020 +0900 |
tree | 609cd3927172542928fef2046101cab3397eebea | |
parent | e47bc1bfd813a6dca8321606b20587db70a5479e [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} CrOS-Libchrome-Original-Commit: 812f416e1368152c31893028eeee7e85bd25e827