Fix content shell drt crash when calling app banner test function.
commit01fffaa3e501bf7e6f1497e27fd81e035482cec1
authorbenwells <benwells@chromium.org>
Thu, 16 Jul 2015 22:07:54 +0000 (16 15:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Jul 2015 22:08:56 +0000 (16 22:08 +0000)
tree609ccc2de0e44c4d1ac6df7f4279fca63d086bc2
parent7514dc1d0f9bae8a03b6471984ef6b4c31b97a91
Fix content shell drt crash when calling app banner test function.

The test function testRunner.resolveBeforeInstallPromptPromise function
should only be called after the
testRunner.dispatchBeforeInstallPromptEvent function has initialized
some test interfaces. However if it does happen to be called first (for
example by ClusterFuzz) it should not crash.

BUG=510190, 509863, 509107, 508455, 508285, 507616, 496890

Review URL: https://codereview.chromium.org/1239913002

Cr-Commit-Position: refs/heads/master@{#339139}
content/shell/renderer/layout_test/blink_test_runner.cc