Revert "[omnibox] Handle URL ellision a little more consistently"
This reverts commit 7999f246. Reason for revert: components_unittests failures HistoryQuickProviderTest.DontTrimHttpSchemeIfInputHasScheme HistoryQuickProviderTest.DoTrimHttpsSchemeIfFlag HistoryQuickProviderTest.DontTrimHttpsScheme HistoryQuickProviderTest.DontTrimHttpsSchemeDespiteFlag HistoryQuickProviderTest.DontTrimHttpSchemeIfInputMatches HistoryQuickProviderTest.DoTrimHttpScheme first failed build https://uberchromegw.corp.google.com/i/chromium.win/builders/Win7%20Tests%20%28dbg%29%281%29/builds/65092 Original change's description: > [omnibox] Handle URL ellision a little more consistently > > When the option hide-suggestion-url-scheme is enabled, Omnibox > suggestions exclude the scheme in some cases where they would > be inconsistent with other suggestions. This change preserves > schemes when the user specified one. > > This change asserts 'preserve_scheme' to GetFormatTypes() now > if alternatively the input, interpretted as a URL, has a scheme. > This changes the treatment of http (and https when certain flags > are set.) Previously it was only asserted if there was a match > in the scheme. > > Added many tests as well. > > Bug: 761505 > Change-Id: I189ececbfad3baf8214e3f289e0c994d3cee9d55 > Reviewed-on: https://chromium-review.googlesource.com/794432 > Commit-Queue: Kevin Bailey <krb@chromium.org> > Reviewed-by: Mark Pearson <mpearson@chromium.org> > Reviewed-by: Justin Donnelly <jdonnelly@chromium.org> > Cr-Commit-Position: refs/heads/master@{#523003} TBR=mpearson@chromium.org,krb@chromium.org,jdonnelly@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 761505 Change-Id: I2f7f3f747c45204bd4d7507f348cbd8141da41aa Reviewed-on: https://chromium-review.googlesource.com/817298Reviewed-by:Maxim Kolosovskiy <kolos@chromium.org> Commit-Queue: Maxim Kolosovskiy <kolos@chromium.org> Cr-Commit-Position: refs/heads/master@{#523070}
Showing
Please register or sign in to comment