[Omnibox] Fix for Ripple effect race condition on action buttons
Theme leaking fix introduced a race condition manifesting in background drawable not always being set on suggestion action buttons. This patch updates the method responsible for adding/binding action buttons to also include setting the background. Second modification of the code prefer copying of drawable over retrieval, which in local testing is significantly better than getting a resource, especially in incognito, where additional theme leaking code causes long wait on the first retrieved resource. In normal case copy is about 2 times faster. In incognito case it is up to 10 times faster than subsequent retrievals. Bug: 1113542 Change-Id: Ic2d09dc0bec4696cec78601b93a30d0fd1b8fd5d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2341403Reviewed-by:Tomasz Wiszkowski <ender@google.com> Reviewed-by:
Ted Choc <tedchoc@chromium.org> Commit-Queue: Filip Gorski <fgorski@chromium.org> Commit-Queue: Tomasz Wiszkowski <ender@google.com> Cr-Commit-Position: refs/heads/master@{#795703}
Showing
Please register or sign in to comment