TemplateURL Performance - don't call replace search terms
That's a heavy function to call. I removed the call. The only thing it was being used for apparently was to get the port. Frankly, I don't see much importance in checking the port of search engines, but I added port_ and a cached internal variable to maintain this support and entirely removed the heavy call. For reference, the port line was part of a large change https://chromium.googlesource.com/chromium/src/+/5b30787532fe44ff67e29fbbedfb1781663a4f06%5E%21/#F8 for which there was no motivating discussion about the need to check ports. I guess there's no harm in it though. BUG= Review URL: https://codereview.chromium.org/1595103007 Cr-Commit-Position: refs/heads/master@{#371851}
Showing
Please register or sign in to comment