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

Issue 2738003002: Add title to current page in zero suggest. (Closed)

Created:
3 years, 9 months ago by gcomanici
Modified:
3 years, 7 months ago
CC:
chromium-reviews, jdonnelly+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add title to current page in zero suggest. TBR=jochen for mechanical changes to chrome/browser/extensions/api/omnibox/* and chrome/browser/android/omnibox/* BUG=697624 Review-Url: https://codereview.chromium.org/2738003002 Cr-Commit-Position: refs/heads/master@{#467762} Committed: https://chromium.googlesource.com/chromium/src/+/8cabc77f6204866cbcdc8d581e130f287acaeb06

Patch Set 1 #

Patch Set 2 : Show title even for non-typed inputs #

Patch Set 3 : Change AutocompleteInput constructor to include title of current page. #

Patch Set 4 : Add flag to show title for current URL suggestion. #

Total comments: 22

Patch Set 5 : Change the place where the title is added and some suggested renaming. #

Total comments: 28

Patch Set 6 : Fix comments and add title in verbatim_match.cc #

Total comments: 12

Patch Set 7 : Fix small comments. #

Patch Set 8 : Fixed the bug that would set the description of verbatim urls other than current page. #

Patch Set 9 : Added description as a param to VerbatimMatchForURL #

Total comments: 12

Patch Set 10 : Include description for other providers. #

Total comments: 4

Patch Set 11 : Fix small nit. #

Patch Set 12 : Fix a nullptr problem that was crashing some UI tests. #

Total comments: 2

Patch Set 13 : Use EmptyString16 #

Patch Set 14 : Sync to head #

Total comments: 6

Patch Set 15 : Remove debugging info. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -161 lines) Patch
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/omnibox/autocomplete_controller_android.cc View 1 2 3 4 3 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_browsertest.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 5 chunks +14 lines, -13 lines 0 comments Download
M chrome/browser/extensions/api/omnibox/omnibox_api_browsertest.cc View 1 2 6 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/extensions/api/omnibox/omnibox_api_interactive_test.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/flag_descriptions.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/search/omnibox_provider.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/omnibox/chrome_omnibox_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/omnibox/omnibox_page_handler.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/home_page_overlay_handler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/startup_pages_handler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/omnibox/browser/autocomplete_classifier.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M components/omnibox/browser/autocomplete_input.h View 1 2 3 4 5 4 chunks +10 lines, -0 lines 0 comments Download
M components/omnibox/browser/autocomplete_input.cc View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M components/omnibox/browser/autocomplete_input_unittest.cc View 1 2 5 chunks +10 lines, -9 lines 0 comments Download
M components/omnibox/browser/autocomplete_match_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/omnibox/browser/autocomplete_provider_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M components/omnibox/browser/autocomplete_result_unittest.cc View 1 2 9 chunks +15 lines, -14 lines 0 comments Download
M components/omnibox/browser/bookmark_provider_unittest.cc View 1 2 5 chunks +5 lines, -1 line 0 comments Download
M components/omnibox/browser/builtin_provider_unittest.cc View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M components/omnibox/browser/clipboard_url_provider.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -2 lines 0 comments Download
M components/omnibox/browser/clipboard_url_provider_unittest.cc View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M components/omnibox/browser/history_quick_provider_performance_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/omnibox/browser/history_quick_provider_unittest.cc View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M components/omnibox/browser/history_url_provider_unittest.cc View 1 2 6 chunks +25 lines, -25 lines 0 comments Download
M components/omnibox/browser/keyword_provider_unittest.cc View 1 2 3 4 3 chunks +8 lines, -8 lines 0 comments Download
M components/omnibox/browser/omnibox_edit_model.cc View 1 2 3 4 4 chunks +8 lines, -9 lines 0 comments Download
M components/omnibox/browser/omnibox_field_trial.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/omnibox/browser/omnibox_field_trial.cc View 1 2 3 4 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M components/omnibox/browser/physical_web_provider.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -2 lines 0 comments Download
M components/omnibox/browser/physical_web_provider_unittest.cc View 1 2 6 chunks +6 lines, -4 lines 0 comments Download
M components/omnibox/browser/shortcuts_provider_test_util.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M components/omnibox/browser/shortcuts_provider_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/omnibox/browser/titled_url_match_utils_unittest.cc View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M components/omnibox/browser/verbatim_match.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M components/omnibox/browser/verbatim_match.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M components/omnibox/browser/zero_suggest_provider.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/omnibox/browser/zero_suggest_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +9 lines, -2 lines 0 comments Download
M components/omnibox/browser/zero_suggest_provider_unittest.cc View 1 2 3 4 7 chunks +7 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 115 (79 generated)
gcomanici
3 years, 9 months ago (2017-03-08 20:15:37 UTC) #2
Mark P
Have you checked this? I don't think this approach will generally work. The in-memory history ...
3 years, 9 months ago (2017-03-09 04:51:59 UTC) #3
Mark P
On 2017/03/09 04:51:59, Mark P wrote: > Have you checked this? I don't think this ...
3 years, 9 months ago (2017-03-09 17:04:48 UTC) #4
gcomanici
On 2017/03/09 17:04:48, Mark P wrote: > On 2017/03/09 04:51:59, Mark P wrote: > > ...
3 years, 9 months ago (2017-03-09 17:20:15 UTC) #5
gcomanici
Hi Mark, PTAL at the new patch, which retrieves the title from the omnibox client. ...
3 years, 9 months ago (2017-03-09 18:46:18 UTC) #7
Mark P
On 2017/03/09 18:46:18, gcomanici wrote: > Hi Mark, > > PTAL at the new patch, ...
3 years, 9 months ago (2017-03-13 23:16:32 UTC) #8
Mark P
I am okay if you want to make this not work on Android, only desktop. ...
3 years, 9 months ago (2017-03-15 23:33:03 UTC) #9
gcomanici
Hi Mark, I would like to get back to this. I believe it is reasonable ...
3 years, 8 months ago (2017-04-03 19:18:48 UTC) #10
Mark P
Gheorghe, Sorry for the delay. This change generally looks pretty good. (I reviewed everything except ...
3 years, 8 months ago (2017-04-10 22:38:02 UTC) #11
gcomanici
Hi Mark, Can I instead keep Issue 697624 open until this is added to Android? ...
3 years, 8 months ago (2017-04-11 20:51:41 UTC) #34
Mark P
Getting there. Most of the comments below are nits, except for one substantive issue regarding ...
3 years, 8 months ago (2017-04-12 05:07:57 UTC) #35
gcomanici
https://codereview.chromium.org/2738003002/diff/180001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2738003002/diff/180001/chrome/browser/about_flags.cc#newcode2598 chrome/browser/about_flags.cc:2598: {"omnibox-display-title-for-current-url", On 2017/04/12 05:07:56, Mark P wrote: > nit: ...
3 years, 8 months ago (2017-04-12 16:16:31 UTC) #37
Mark P
https://codereview.chromium.org/2738003002/diff/180001/chrome/browser/flag_descriptions.h File chrome/browser/flag_descriptions.h (right): https://codereview.chromium.org/2738003002/diff/180001/chrome/browser/flag_descriptions.h#newcode3225 chrome/browser/flag_descriptions.h:3225: // Description of the about: flag g for displaying ...
3 years, 8 months ago (2017-04-12 17:58:46 UTC) #41
Mark P
Oh, and I keep forgetting to mention, yes keeping bug 697624 open until there's an ...
3 years, 8 months ago (2017-04-12 18:06:38 UTC) #42
gcomanici
https://codereview.chromium.org/2738003002/diff/200001/components/omnibox/browser/history_url_provider.cc File components/omnibox/browser/history_url_provider.cc (right): https://codereview.chromium.org/2738003002/diff/200001/components/omnibox/browser/history_url_provider.cc#newcode619 components/omnibox/browser/history_url_provider.cc:619: return match; On 2017/04/12 17:58:46, Mark P wrote: > ...
3 years, 8 months ago (2017-04-12 19:25:00 UTC) #44
Mark P
https://codereview.chromium.org/2738003002/diff/200001/components/omnibox/browser/verbatim_match.cc File components/omnibox/browser/verbatim_match.cc (right): https://codereview.chromium.org/2738003002/diff/200001/components/omnibox/browser/verbatim_match.cc#newcode43 components/omnibox/browser/verbatim_match.cc:43: if (base::FeatureList::IsEnabled(omnibox::kDisplayTitleForCurrentUrl)) { On 2017/04/12 19:25:00, gcomanici wrote: > ...
3 years, 8 months ago (2017-04-12 19:38:01 UTC) #48
gcomanici
Thanks Mark! PTAL. https://codereview.chromium.org/2738003002/diff/200001/components/omnibox/browser/verbatim_match.cc File components/omnibox/browser/verbatim_match.cc (right): https://codereview.chromium.org/2738003002/diff/200001/components/omnibox/browser/verbatim_match.cc#newcode43 components/omnibox/browser/verbatim_match.cc:43: if (base::FeatureList::IsEnabled(omnibox::kDisplayTitleForCurrentUrl)) { On 2017/04/12 19:38:01, ...
3 years, 8 months ago (2017-04-12 20:48:23 UTC) #50
Mark P
https://codereview.chromium.org/2738003002/diff/200001/components/omnibox/browser/verbatim_match.cc File components/omnibox/browser/verbatim_match.cc (right): https://codereview.chromium.org/2738003002/diff/200001/components/omnibox/browser/verbatim_match.cc#newcode44 components/omnibox/browser/verbatim_match.cc:44: match.description = input.current_title(); On 2017/04/12 20:48:22, gcomanici wrote: > ...
3 years, 8 months ago (2017-04-12 21:16:57 UTC) #52
gcomanici
https://codereview.chromium.org/2738003002/diff/200001/components/omnibox/browser/verbatim_match.cc File components/omnibox/browser/verbatim_match.cc (right): https://codereview.chromium.org/2738003002/diff/200001/components/omnibox/browser/verbatim_match.cc#newcode44 components/omnibox/browser/verbatim_match.cc:44: match.description = input.current_title(); Makes sense. Done.
3 years, 8 months ago (2017-04-13 16:38:38 UTC) #57
Mark P
lgtm modulo comments (a few minor bugs, some user-visible; feel free to submit after you ...
3 years, 8 months ago (2017-04-13 21:12:29 UTC) #60
gcomanici
Thanks, Mark! Peter, can you review chrome/browser/ui/* ? Thanks! https://codereview.chromium.org/2738003002/diff/260001/components/omnibox/browser/clipboard_url_provider.cc File components/omnibox/browser/clipboard_url_provider.cc (right): https://codereview.chromium.org/2738003002/diff/260001/components/omnibox/browser/clipboard_url_provider.cc#newcode51 components/omnibox/browser/clipboard_url_provider.cc:51: ...
3 years, 8 months ago (2017-04-18 18:52:53 UTC) #62
Peter Kasting
c/b/ui/* LGTM; it's OK to TBR OWNERS for this sort of mechanical change.
3 years, 8 months ago (2017-04-18 20:35:33 UTC) #63
Mark P
two trivial nits, otherwise still lgtm --mark https://codereview.chromium.org/2738003002/diff/280001/components/omnibox/browser/clipboard_url_provider.cc File components/omnibox/browser/clipboard_url_provider.cc (right): https://codereview.chromium.org/2738003002/diff/280001/components/omnibox/browser/clipboard_url_provider.cc#newcode17 components/omnibox/browser/clipboard_url_provider.cc:17: #include "ui/base/l10n/l10n_util.h" ...
3 years, 8 months ago (2017-04-18 21:05:10 UTC) #64
gcomanici
Thank you, Peter! I don't really know what TBR OWNERS means and how it is ...
3 years, 8 months ago (2017-04-19 02:53:08 UTC) #66
Mark P
On 2017/04/19 02:53:08, gcomanici wrote: > Thank you, Peter! I don't really know what TBR ...
3 years, 8 months ago (2017-04-19 04:02:01 UTC) #70
jochen (gone - plz use gerrit)
for both directories, there are owners closer to the directory - also for TBR'ing, please ...
3 years, 8 months ago (2017-04-19 10:18:10 UTC) #73
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/2738003002/300001
3 years, 8 months ago (2017-04-19 13:37:26 UTC) #76
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/433858)
3 years, 8 months ago (2017-04-19 14:33:15 UTC) #78
gcomanici
On 2017/04/19 14:33:15, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 8 months ago (2017-04-26 21:34:37 UTC) #89
Peter Kasting
LGTM with change https://codereview.chromium.org/2738003002/diff/400001/chrome/browser/ui/omnibox/chrome_omnibox_client.cc File chrome/browser/ui/omnibox/chrome_omnibox_client.cc (right): https://codereview.chromium.org/2738003002/diff/400001/chrome/browser/ui/omnibox/chrome_omnibox_client.cc#newcode154 chrome/browser/ui/omnibox/chrome_omnibox_client.cc:154: static const auto* const kEmptyTitle = ...
3 years, 8 months ago (2017-04-27 00:33:57 UTC) #92
gcomanici
https://codereview.chromium.org/2738003002/diff/400001/chrome/browser/ui/omnibox/chrome_omnibox_client.cc File chrome/browser/ui/omnibox/chrome_omnibox_client.cc (right): https://codereview.chromium.org/2738003002/diff/400001/chrome/browser/ui/omnibox/chrome_omnibox_client.cc#newcode154 chrome/browser/ui/omnibox/chrome_omnibox_client.cc:154: static const auto* const kEmptyTitle = new base::string16(); On ...
3 years, 7 months ago (2017-04-27 02:11:23 UTC) #96
Mark P
not lgtm, as I noticed some possible errors from debugging / rebasing that should be ...
3 years, 7 months ago (2017-04-27 05:44:09 UTC) #102
gcomanici
Hi Mark, Thanks for point out the errors related to rebasing/debugging. I did a pass ...
3 years, 7 months ago (2017-04-27 17:29:30 UTC) #108
Mark P
lgtm again :-) --mark
3 years, 7 months ago (2017-04-27 19:21:29 UTC) #109
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/2738003002/480001
3 years, 7 months ago (2017-04-27 19:46:38 UTC) #112
commit-bot: I haz the power
3 years, 7 months ago (2017-04-27 20:05:19 UTC) #115
Message was sent while issue was closed.
Committed patchset #15 (id:480001) as
https://chromium.googlesource.com/chromium/src/+/8cabc77f6204866cbcdc8d581e13...

Powered by Google App Engine
This is Rietveld 408576698