-
Kevin Bailey authored
Refs (or hashes) are useful for navigating, but not useful for comparing URLs. We compare URLs when deduping URLs in Omnibox matches, and when testing eligibility for switching to already open tabs. This CL changes GURLToStrippedGURL() to remove refs from the stripped version of destination URLs (only used for comparison) and when testing URLs for tab switching. We only remove refs when the input doesn't specify a ref. This is critical to proper deduping. Also added unit test. Bug: 780835 Change-Id: Ifef8d8b9d2efd4394b598342c13ef8aa439089ce Reviewed-on: https://chromium-review.googlesource.com/1025953 Commit-Queue: Kevin Bailey <krb@chromium.org> Reviewed-by:
Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#555760}
cd966170