chromeos: Prepare TrayCastMediaRouter test for PostTask refactor
This delays initialization of MockMediaRouters in the test until the browser's task executor is initialized. This is required for the upcoming move of BrowserThread::GetTaskRunnerForThread to base::Create*TaskRunnerWithTraits. In the future, TaskRunners can only be obtained after thread initialization. Since MockMediaRouter obtains a TaskRunner in its constructor, this patch moves its creation. Bug: 878356 Change-Id: Idd599d23246d42427d35bccd3c027f0a24427cfa Reviewed-on: https://chromium-review.googlesource.com/1230024 Commit-Queue: Eric Seckler <eseckler@chromium.org> Reviewed-by:James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/master@{#592081}
Showing
Please register or sign in to comment