[WebLayer] Fix Site Settings widget colors
This CL fixes the coloring on some Site Settings widgets, most importantly the switch. The issue is that the fake Activity we have in WebLayer's classloader doesn't extend AppCompatActivity, so some appcompat functionality doesn't get initialized. I ran into issues making the Activity extend AppCompatActivity instead of FragmentActivity, but was able to perform get the necessary initialization by creating a new AppCompatDelegate. Bug: 1085553 Change-Id: I268f14d616db77cf35ff73edc54d85bf173dfa4d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2258428 Commit-Queue: Robbie McElrath <rmcelrath@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#781202}
Showing
Please register or sign in to comment