Fix paste not triggering suggestions on the NTP.
The issue is that this refactor: https://chromium-review.googlesource.com/1148680 updated all text updates to the URL bar from the location bar to be ignored for autocomplete purposes. But in the old code, there were cases where it used setText/setUrl directly and those would have triggered autocomplete. setUrlBarText did the current behavior in the old code, so those paths do not need updating. Instead of implicit triggers for autocomplete, this uses the consistent path of never triggering autocomplete implicitly, but instead makes it explicit in the cases we want. Also fixes a trivial case where "" text updates (i.e. from the NTP) were spamming the URL bar where it didn't need to. BUG=871130 Change-Id: I26664bf3aa065176830f60b250d57a64de1c10f9 Reviewed-on: https://chromium-review.googlesource.com/1163992 Commit-Queue: Ted Choc <tedchoc@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#581406}
Showing
Please register or sign in to comment