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

Issue 14259008: Instant Extended: Add prominent search term support (Closed)

Created:
7 years, 8 months ago by sail
Modified:
7 years, 7 months ago
CC:
chromium-reviews, tfarina, James Su, sail+watch_chromium.org
Visibility:
Public.

Description

Instant Extended: Add prominent search term support Currently if there's a mixed content warning or if the search term looks like a URL we disable search term extraction. With this CL adds a new 'URL_LIKE_SEARCH_TERMS' type that the UI can optionally allow. BUG=233494 TEST=Verified that tests passed. No user visible change in this CL. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197028

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 11

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Total comments: 22

Patch Set 7 : #

Total comments: 12

Patch Set 8 : #

Patch Set 9 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -91 lines) Patch
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac_browsertest.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_interactive_uitest.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/test_toolbar_model.h View 1 2 3 4 5 6 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/toolbar/test_toolbar_model.cc View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model.h View 1 2 3 4 5 6 7 2 chunks +20 lines, -3 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_impl.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_impl.cc View 1 2 3 4 5 6 7 7 chunks +44 lines, -27 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_unittest.cc View 1 2 3 4 5 6 7 21 chunks +52 lines, -33 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
sail
7 years, 8 months ago (2013-04-23 02:09:22 UTC) #1
sreeram
https://codereview.chromium.org/14259008/diff/4001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/14259008/diff/4001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode397 chrome/browser/ui/omnibox/omnibox_edit_model.cc:397: } Nit: no curlies. I believe the style is ...
7 years, 8 months ago (2013-04-23 22:56:45 UTC) #2
sail
https://codereview.chromium.org/14259008/diff/4001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/14259008/diff/4001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode397 chrome/browser/ui/omnibox/omnibox_edit_model.cc:397: } On 2013/04/23 22:56:45, sreeram wrote: > Nit: no ...
7 years, 8 months ago (2013-04-24 00:22:23 UTC) #3
sail
Updated, please take another look. https://codereview.chromium.org/14259008/diff/4001/chrome/browser/ui/toolbar/toolbar_model_impl.cc File chrome/browser/ui/toolbar/toolbar_model_impl.cc (right): https://codereview.chromium.org/14259008/diff/4001/chrome/browser/ui/toolbar/toolbar_model_impl.cc#newcode147 chrome/browser/ui/toolbar/toolbar_model_impl.cc:147: if (AreProminentSearchTerms(search_terms)) On 2013/04/23 ...
7 years, 8 months ago (2013-04-25 02:08:16 UTC) #4
sail
(Also, I still haven't been able to test mixed content warnings. It might be that ...
7 years, 8 months ago (2013-04-25 02:09:57 UTC) #5
sreeram
lgtm https://codereview.chromium.org/14259008/diff/16001/chrome/browser/ui/toolbar/toolbar_model_impl.cc File chrome/browser/ui/toolbar/toolbar_model_impl.cc (right): https://codereview.chromium.org/14259008/diff/16001/chrome/browser/ui/toolbar/toolbar_model_impl.cc#newcode282 chrome/browser/ui/toolbar/toolbar_model_impl.cc:282: search_terms = string16(); search_terms.clear(); https://codereview.chromium.org/14259008/diff/16001/chrome/browser/ui/toolbar/toolbar_model_impl.h File chrome/browser/ui/toolbar/toolbar_model_impl.h (right): ...
7 years, 8 months ago (2013-04-25 16:37:10 UTC) #6
sail
https://codereview.chromium.org/14259008/diff/16001/chrome/browser/ui/toolbar/toolbar_model_impl.cc File chrome/browser/ui/toolbar/toolbar_model_impl.cc (right): https://codereview.chromium.org/14259008/diff/16001/chrome/browser/ui/toolbar/toolbar_model_impl.cc#newcode282 chrome/browser/ui/toolbar/toolbar_model_impl.cc:282: search_terms = string16(); On 2013/04/25 16:37:10, sreeram wrote: > ...
7 years, 8 months ago (2013-04-25 16:41:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/14259008/23001
7 years, 8 months ago (2013-04-25 16:41:41 UTC) #8
commit-bot: I haz the power
Presubmit check for 14259008-23001 failed and returned exit status 1. INFO:root:Found 14 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-25 16:41:59 UTC) #9
sail
+pkasting for ui/omnibox OWNERS review
7 years, 8 months ago (2013-04-25 16:43:39 UTC) #10
Peter Kasting
https://chromiumcodereview.appspot.com/14259008/diff/23001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://chromiumcodereview.appspot.com/14259008/diff/23001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode426 chrome/browser/ui/omnibox/omnibox_edit_model.cc:426: if (sel_min != 0 || view_->toolbar_model()->GetSearchTermType() != Nit: Odd ...
7 years, 8 months ago (2013-04-25 19:42:54 UTC) #11
sail
https://codereview.chromium.org/14259008/diff/23001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/14259008/diff/23001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode426 chrome/browser/ui/omnibox/omnibox_edit_model.cc:426: if (sel_min != 0 || view_->toolbar_model()->GetSearchTermType() != On 2013/04/25 ...
7 years, 8 months ago (2013-04-25 22:18:46 UTC) #12
Peter Kasting
LGTM https://codereview.chromium.org/14259008/diff/35001/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc File chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc (right): https://codereview.chromium.org/14259008/diff/35001/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc#newcode1268 chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc:1268: !model()->user_input_in_progress()); Tiny nit: Might be fractionally clearer as: ...
7 years, 8 months ago (2013-04-25 22:48:39 UTC) #13
sail
Addressed review comments and fixed tests. https://codereview.chromium.org/14259008/diff/35001/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc File chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc (right): https://codereview.chromium.org/14259008/diff/35001/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc#newcode1268 chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc:1268: !model()->user_input_in_progress()); On 2013/04/25 ...
7 years, 8 months ago (2013-04-25 23:39:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/14259008/41002
7 years, 8 months ago (2013-04-26 01:01:31 UTC) #15
commit-bot: I haz the power
Presubmit check for 14259008-41002 failed and returned exit status 1. INFO:root:Found 16 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-26 01:01:37 UTC) #16
sail
+joaodasilva@chromium.org for policy/* OWNERS review
7 years, 8 months ago (2013-04-26 01:11:49 UTC) #17
Andrew T Wilson (Slow)
On 2013/04/26 01:11:49, sail wrote: > mailto:+joaodasilva@chromium.org for policy/* OWNERS review lgtm
7 years, 7 months ago (2013-04-26 17:33:18 UTC) #18
Joao da Silva
Opened this tab in the morning and lost it during the day... thanks for noticing ...
7 years, 7 months ago (2013-04-26 17:36:53 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/14259008/41002
7 years, 7 months ago (2013-04-26 17:43:29 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/14259008/57001
7 years, 7 months ago (2013-04-26 17:58:59 UTC) #21
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 7 months ago (2013-04-26 18:01:01 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/14259008/57001
7 years, 7 months ago (2013-04-26 18:14:32 UTC) #23
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=107587
7 years, 7 months ago (2013-04-26 21:40:18 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/14259008/57001
7 years, 7 months ago (2013-04-27 16:01:52 UTC) #25
commit-bot: I haz the power
7 years, 7 months ago (2013-04-29 13:59:00 UTC) #26
Message was sent while issue was closed.
Change committed as 197028

Powered by Google App Engine
This is Rietveld 408576698