Android: Streamline some infobars code.
1. Don't null-check after pointer cast, because it will never be null (unless the DCHECK on the previous line had already failed, however this clearly never happens because the same pointer is de-reffed on the next line, so we'd have seen crashes) 2. Combine two methods instead of having one method thunk to the other. Bug: none Change-Id: Id67f5cf04fda40ec694689452c403601402cc306 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2575892 Commit-Queue: Colin Blundell <blundell@chromium.org> Reviewed-by:Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/master@{#835607}
Showing
Please register or sign in to comment