Commit 7e6c7583 authored by Xiyuan Xia's avatar Xiyuan Xia Committed by Commit Bot

Fix DragToOverviewTest hang with trace enabled

UIPerformanceTest::SetUpOnMainThread() needs to be called to
start tracing. Otherwise, it hangs on exit when trying to
stop trace.

Bug: 942599
Change-Id: I13045ea5244bc20db8387c11972b2274e4d90f54
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1566364Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Xiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#650464}
parent 544b1dc0
......@@ -91,6 +91,7 @@ class DragToOverviewTest : public UIPerformanceTest {
command_line->AppendSwitch(ash::switches::kAshEnableTabletMode);
}
void SetUpOnMainThread() override {
UIPerformanceTest::SetUpOnMainThread();
test::SetAndWaitForTabletMode(true);
if (base::SysInfo::IsRunningOnChromeOS()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment