Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Issue 2963883002: Omnibox UI Experiments: Refactor HTTPS trimming into UrlFormatter. (Closed)

Created:
3 years, 5 months ago by tommycli
Modified:
3 years, 5 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, jdonnelly+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Omnibox UI Experiments: Refactor HTTPS trimming into UrlFormatter. Given that we must implement elide-after-host logic within UrlFormatter, consolidate the other experimental URL trimming logic into the same method. BUG=732582 Review-Url: https://codereview.chromium.org/2963883002 Cr-Commit-Position: refs/heads/master@{#483497} Committed: https://chromium.googlesource.com/chromium/src/+/72014f6a8ab12897583185fc6c5b4752fcbaa278

Patch Set 1 #

Total comments: 15

Patch Set 2 : add test #

Patch Set 3 : update comment #

Total comments: 6

Patch Set 4 : address comments #

Patch Set 5 : Update Mac test #

Total comments: 2

Patch Set 6 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -156 lines) Patch
M chrome/browser/ui/cocoa/status_bubble_mac_unittest.mm View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M components/omnibox/browser/autocomplete_match.h View 1 2 3 2 chunks +5 lines, -17 lines 0 comments Download
M components/omnibox/browser/autocomplete_match.cc View 1 2 3 2 chunks +9 lines, -60 lines 0 comments Download
M components/omnibox/browser/autocomplete_match_unittest.cc View 1 2 3 4 5 1 chunk +20 lines, -31 lines 0 comments Download
M components/omnibox/browser/clipboard_url_provider.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M components/omnibox/browser/history_quick_provider.cc View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M components/omnibox/browser/history_url_provider.cc View 1 2 3 3 chunks +14 lines, -12 lines 0 comments Download
M components/omnibox/browser/titled_url_match_utils.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M components/omnibox/browser/zero_suggest_provider.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M components/url_formatter/url_formatter.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/url_formatter/url_formatter.cc View 1 3 chunks +23 lines, -22 lines 0 comments Download
M components/url_formatter/url_formatter_unittest.cc View 1 2 3 4 3 chunks +39 lines, -3 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 33 (20 generated)
tommycli
pkasting: PTAL. followup from earlier today https://codereview.chromium.org/2963883002/diff/1/components/omnibox/browser/autocomplete_match_unittest.cc File components/omnibox/browser/autocomplete_match_unittest.cc (right): https://codereview.chromium.org/2963883002/diff/1/components/omnibox/browser/autocomplete_match_unittest.cc#newcode114 components/omnibox/browser/autocomplete_match_unittest.cc:114: TEST(AutocompleteMatchTest, FormatUrlForSuggestionDisplay) { ...
3 years, 5 months ago (2017-06-28 22:29:02 UTC) #2
Peter Kasting
https://codereview.chromium.org/2963883002/diff/1/components/omnibox/browser/autocomplete_match.cc File components/omnibox/browser/autocomplete_match.cc (right): https://codereview.chromium.org/2963883002/diff/1/components/omnibox/browser/autocomplete_match.cc#newcode492 components/omnibox/browser/autocomplete_match.cc:492: base::string16 AutocompleteMatch::FormatUrlForSuggestionDisplay( I think we should nuke all these ...
3 years, 5 months ago (2017-06-28 23:09:59 UTC) #3
tommycli
pkasting: Thanks! For your reference, here was the original patch that moved the providers away ...
3 years, 5 months ago (2017-06-29 00:19:44 UTC) #4
Peter Kasting
LGTM Man, I sure don't like /* name_of_parameter */ comments in function calls. It's so ...
3 years, 5 months ago (2017-06-29 01:05:44 UTC) #7
tommycli
Thanks! I also removed the /* name_of_parameter */. It's not really necessary for a single-param ...
3 years, 5 months ago (2017-06-29 16:46:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2963883002/60001
3 years, 5 months ago (2017-06-29 16:47:04 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/489384)
3 years, 5 months ago (2017-06-29 17:45:56 UTC) #15
tommycli
pkasting: Previously, "http://" was formatted to "http:" on OmitHTTP due to a quirk of how ...
3 years, 5 months ago (2017-06-29 19:09:47 UTC) #22
Peter Kasting
On 2017/06/29 19:09:47, tommycli wrote: > pkasting: Previously, "http://" was formatted to "http:" on OmitHTTP ...
3 years, 5 months ago (2017-06-29 19:54:21 UTC) #25
Peter Kasting
Apparently forgot to publish this https://codereview.chromium.org/2963883002/diff/80001/components/omnibox/browser/autocomplete_match_unittest.cc File components/omnibox/browser/autocomplete_match_unittest.cc (right): https://codereview.chromium.org/2963883002/diff/80001/components/omnibox/browser/autocomplete_match_unittest.cc#newcode139 components/omnibox/browser/autocomplete_match_unittest.cc:139: for (FormatUrlTestData& test_case : ...
3 years, 5 months ago (2017-06-29 19:54:47 UTC) #26
tommycli
thanks! https://codereview.chromium.org/2963883002/diff/80001/components/omnibox/browser/autocomplete_match_unittest.cc File components/omnibox/browser/autocomplete_match_unittest.cc (right): https://codereview.chromium.org/2963883002/diff/80001/components/omnibox/browser/autocomplete_match_unittest.cc#newcode139 components/omnibox/browser/autocomplete_match_unittest.cc:139: for (FormatUrlTestData& test_case : normal_cases) { On 2017/06/29 ...
3 years, 5 months ago (2017-06-29 20:27:50 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2963883002/100001
3 years, 5 months ago (2017-06-29 20:28:43 UTC) #30
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 21:42:45 UTC) #33
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/72014f6a8ab12897583185fc6c5b...

Powered by Google App Engine
This is Rietveld 408576698