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

Issue 2211983002: Remove search::IsQueryExtractionEnabled (Closed)

Created:
4 years, 4 months ago by Marc Treib
Modified:
4 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, tburkard+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, gavinp+prer_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, tfarina, kmadhusu+watch_chromium.org, James Su, Jered
Base URL:
https://chromium.googlesource.com/chromium/src.git@remove_prefetch_non_default
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove search::IsQueryExtractionEnabled BUG=627747, 627483 Committed: https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902 Cr-Commit-Position: refs/heads/master@{#411587}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : ios #

Patch Set 7 : Android #

Total comments: 8

Patch Set 8 : remove more tests #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -948 lines) Patch
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 5 chunks +6 lines, -118 lines 1 comment Download
M chrome/browser/search/instant_unittest_base.h View 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/search/instant_unittest_base.cc View 3 chunks +8 lines, -19 lines 0 comments Download
M chrome/browser/search/search.h View 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/search/search.cc View 1 2 chunks +3 lines, -43 lines 0 comments Download
M chrome/browser/search/search_unittest.cc View 9 chunks +10 lines, -35 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_interactive_uitest.cc View 1 12 chunks +4 lines, -193 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_manual_interactive_uitest.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/search/instant_search_prerenderer_unittest.cc View 2 chunks +0 lines, -16 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_unittest.cc View 1 2 3 4 5 6 7 7 chunks +17 lines, -261 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 3 chunks +0 lines, -10 lines 0 comments Download
M components/omnibox/browser/verbatim_match.cc View 2 chunks +6 lines, -10 lines 0 comments Download
M components/search/search.h View 2 chunks +0 lines, -10 lines 0 comments Download
M components/search/search.cc View 1 2 3 4 4 chunks +2 lines, -31 lines 3 comments Download
M components/search/search_android_unittest.cc View 1 2 3 4 5 6 2 chunks +0 lines, -8 lines 0 comments Download
M components/search/search_switches.h View 1 chunk +0 lines, -4 lines 0 comments Download
M components/search/search_switches.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M components/search/search_unittest.cc View 1 chunk +2 lines, -48 lines 0 comments Download
M ios/chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
D ios/chrome/browser/search/search_util.h View 1 2 3 4 5 1 chunk +0 lines, -42 lines 0 comments Download
D ios/chrome/browser/search/search_util.mm View 1 2 3 4 5 1 chunk +0 lines, -69 lines 0 comments Download
M ios/chrome/ios_chrome.gyp View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (13 generated)
Marc Treib
This is the (first) big one! There's more that can be removed, but I figured ...
4 years, 4 months ago (2016-08-09 10:23:43 UTC) #2
Peter Kasting
LGTM https://codereview.chromium.org/2211983002/diff/120001/chrome/browser/ui/toolbar/toolbar_model_unittest.cc File chrome/browser/ui/toolbar/toolbar_model_unittest.cc (right): https://codereview.chromium.org/2211983002/diff/120001/chrome/browser/ui/toolbar/toolbar_model_unittest.cc#newcode196 chrome/browser/ui/toolbar/toolbar_model_unittest.cc:196: TEST_F(ToolbarModelTest, ShouldDisplayURL) { On 2016/08/09 10:23:43, Marc Treib ...
4 years, 4 months ago (2016-08-09 20:55:13 UTC) #3
Marc Treib
Thanks Peter! Ping @ Kausalya - could you take a look please? Thanks! https://codereview.chromium.org/2211983002/diff/120001/chrome/browser/ui/toolbar/toolbar_model_unittest.cc File ...
4 years, 4 months ago (2016-08-10 12:53:40 UTC) #4
kmadhusu
Changes LGTM. Thanks. https://codereview.chromium.org/2211983002/diff/140001/components/search/search.cc File components/search/search.cc (left): https://codereview.chromium.org/2211983002/diff/140001/components/search/search.cc#oldcode59 components/search/search.cc:59: const char kEnableQueryExtractionFlagName[] = "query_extraction"; Some ...
4 years, 4 months ago (2016-08-10 20:19:53 UTC) #5
Marc Treib
https://codereview.chromium.org/2211983002/diff/140001/components/search/search.cc File components/search/search.cc (left): https://codereview.chromium.org/2211983002/diff/140001/components/search/search.cc#oldcode59 components/search/search.cc:59: const char kEnableQueryExtractionFlagName[] = "query_extraction"; On 2016/08/10 20:19:52, kmadhusu ...
4 years, 4 months ago (2016-08-11 09:59:14 UTC) #8
Marc Treib
+sdefresne for ios/ approval - just deleting some unused code. PTAL, thanks!
4 years, 4 months ago (2016-08-11 11:39:07 UTC) #15
Marc Treib
+tnagel for c/b/policy approval. PTAL, thanks! https://codereview.chromium.org/2211983002/diff/140001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (left): https://codereview.chromium.org/2211983002/diff/140001/chrome/browser/policy/policy_browsertest.cc#oldcode1194 chrome/browser/policy/policy_browsertest.cc:1194: IN_PROC_BROWSER_TEST_F(PolicyTest, ReplaceSearchTerms) { ...
4 years, 4 months ago (2016-08-11 11:42:30 UTC) #17
Thiemo Nagel
On 2016/08/11 11:42:30, Marc Treib wrote: > +tnagel for c/b/policy approval. PTAL, thanks! chrome/browser/policy/policy_browsertest.cc rubberstamp ...
4 years, 4 months ago (2016-08-11 11:58:53 UTC) #18
sdefresne
ios/ lgtm
4 years, 4 months ago (2016-08-11 18:32:48 UTC) #19
kmadhusu
lgtm https://codereview.chromium.org/2211983002/diff/140001/components/search/search.cc File components/search/search.cc (left): https://codereview.chromium.org/2211983002/diff/140001/components/search/search.cc#oldcode59 components/search/search.cc:59: const char kEnableQueryExtractionFlagName[] = "query_extraction"; On 2016/08/11 09:59:14, ...
4 years, 4 months ago (2016-08-11 22:17:12 UTC) #20
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/2211983002/140001
4 years, 4 months ago (2016-08-12 09:49:49 UTC) #23
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-12 09:53:49 UTC) #24
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902 Cr-Commit-Position: refs/heads/master@{#411587}
4 years, 4 months ago (2016-08-12 09:55:40 UTC) #26
Peter Kasting
4 years, 4 months ago (2016-08-20 02:21:19 UTC) #27
Message was sent while issue was closed.
Apparently I never sent this draft message!  It's not really important and
requires no followup, but sending it anyway for posterity.

https://codereview.chromium.org/2211983002/diff/120001/chrome/browser/ui/tool...
File chrome/browser/ui/toolbar/toolbar_model_unittest.cc (right):

https://codereview.chromium.org/2211983002/diff/120001/chrome/browser/ui/tool...
chrome/browser/ui/toolbar/toolbar_model_unittest.cc:196:
TEST_F(ToolbarModelTest, ShouldDisplayURL) {
On 2016/08/10 12:53:40, Marc Treib wrote:
> On 2016/08/09 20:55:13, Peter Kasting wrote:
> > On 2016/08/09 10:23:43, Marc Treib wrote:
> > > I'm not sure how much value this test still has with all the query
> extraction
> > > parts removed. It still tests that URLs are displayed properly, but now
the
> > only
> > > special case is that "http://" gets removed.
> > 
> > I would keep the file, but I'd rip out PopupToolbarModelTest entirely,
remove
> > the last four test item entries, remove the TemplateURLServiceFactory an
> > SetGoogleBaseURL() stuff from SetUp(), remove the last couple blocks of
> > NavigateAndCheckText() that toggle whether editing is in progress, remove
the
> > bits about faking a secure connection, see if NavigateAndCheckText() and
> > NavigateAndCheckElided() can share code somehow, etc.
> 
> Done, mostly (except for sharing code between the two NavigateAnd... methods -
> they could potentially share the first few lines, but IMO not worth it).
> 
> Out of curiosity: What was the purpose of the PopupToolbarModelTest? The only
> difference to ToolbarModelTest was the "Browser::TYPE_POPUP" part; not sure
what
> that means or why it would make any difference for the test?

The location bar works differently in popup windows (e.g. is not editable).  The
test verified none of those differences affected this sort of case.  That
distinction isn't meaningful enough, with most of this file gone, to stick
around.

Powered by Google App Engine
This is Rietveld 408576698