Android Accessibility: Avoiding Infinite loop of FrameLayouts in a11y tree

Initially shows that if the mWebContentsAccessibility was null or
not enabled, we just create it and enable it. The return value was null for these 2 cases.

This CL tries to get that behavior back and avoid loops.

Bug: 805014
Change-Id: I967503ec2601311c7bdd92b30bf5567308d4ce80
Commit-Queue: Isha Bobra <>
Reviewed-by: Bo <>
Reviewed-by: Jinsuk Kim <>
Reviewed-by: Dominic Mazzoni <>
Cr-Commit-Position: refs/heads/master@{#536404}
4 files changed