[search_engines] Protect DSE from removal when the user clears History
Some users have their DSE set to an autogenerated TemplateURL created as the user browses (via OpenSearch). Those engines are automatically deleted when the corresponding History entry is deleted. This code protects those DSEs from removal. This was part of the CanReplace() clause in M88 and before, so we regressed this in M89. This CL fixes the regression and adds a test to prevent future regression. BUG=1166372 Change-Id: I448d053b7dcfc38343f2d82e5c86df8c5e168d66 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2628045 Commit-Queue: Tommy Li <tommycli@chromium.org> Reviewed-by:Peter Kasting <pkasting@chromium.org> Reviewed-by:
Orin Jaworski <orinj@chromium.org> Cr-Commit-Position: refs/heads/master@{#843400}
Showing
Please register or sign in to comment