Fix flaky AutoLaunchedKioskTest.CrashRestore

The test was timing out waiting for a message from the test app.
The problem was that in CrashRestore test, the app launch is expected to
happen early on, during chrome session set up - before the test main
part is run, and when the TestExtensionMessageListener is registered.

This CL moves extension message listener registration earlier in the
browser test setup (note that SetUpOnMainThread might be too late, while
SetUp is too early as message loop is not yet initialized).

BUG=930345
TEST=Ran the test with gtest_repeat=20, with no failures

Change-Id: I12c8d40fc52270492723a14b764a9cc7e3a619a6
Reviewed-on: https://chromium-review.googlesource.com/c/1474794
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Toni Baržić <tbarzic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#632408}
1 file changed