After Java assert is enabled on Android L+, WebViewChromiumFactoryProvider fails on
line 447: assert mStarted
during the "SystemWebViewShellLayoutTest" on Buildbot Android Webview M (dbg).
Huh, we are calling
AwBrowserContext awBrowserContext = getBrowserContextOnUiThread();
before setting "mStarted = true" so the mStarted assert inside getBrowserContextOnUiThread() should always fail :). It looks like earlier we would not call getBrowserContextOnUiThread() inside of startChromiumLocked() so we wouldn't hit this problem (and the assert would ensure that we always called startChromiumLocked() first.
The CL that moved getBrowserContextOnUiThread() is
https://codereview.chromium.org/2398433002
Bo, it looks like we can just move "mStarted = true" to before the call to getBrowserContextOnUiThread() inside startChromiumLocked()?
Comment 1 by boliu@chromium.org
, Nov 21 2016Owner: ----