[Omnibox] remove ShowOnlyKeywordMatch
This CL removes the need for ShowOnlyKeywordMatch() (and removes that function). The ShowOnlyKeywordMatch() was used to check whether the animation had reached the suggestion icon and then it would make it invisible. The code will now narrow the icon until it has no width, removing it smoothly rather than making it pop out of existence. ShowOnlyKeywordMatch() also had a very minor optimization effect by not laying out the suggestion if the keyword search had finished animating. This optimization is small and on an uncommon case. The primary reason for this CL is to ease the transition to CL/974656. Bug: None Change-Id: I3217b1235352b4caa05d5bc01422c88e4b65991b Reviewed-on: https://chromium-review.googlesource.com/977226Reviewed-by:Tommy Li <tommycli@chromium.org> Commit-Queue: Dave Schuyler <dschuyler@chromium.org> Cr-Commit-Position: refs/heads/master@{#545537}
Showing
Please register or sign in to comment