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

Issue 22031002: Omnibox: Create DemoteByType Experiment (Closed)

Created:
7 years, 4 months ago by Mark P
Modified:
7 years, 4 months ago
CC:
chromium-reviews, James Su, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org
Visibility:
Public.

Description

Omnibox: Create DemoteByType Experiment This experiment, which runs as part of the bundled omnibox field trial, uses the field trial parameters to demote results of particular types (e.g., HISTORY_TITLE results), possibly depending on context (e.g., search results page doing search term replacement). It also improves the testing framework for field trial parameters, allowing them to be cleared between consecutive TEST_F()s. Tested via unit tests and by setting up my local variations server with some parameters and making sure results can be demoted or omitted. BUG=264066 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216633

Patch Set 1 #

Patch Set 2 : come cleanup, getting proper function names, etc. #

Total comments: 30

Patch Set 3 : rebase #

Patch Set 4 : snapshot for Alexei #

Patch Set 5 : Peter's comments and Alexei's improvements. #

Total comments: 9

Patch Set 6 : resolve #

Total comments: 4

Patch Set 7 : string_split.cc #

Patch Set 8 : Peter + Alexei comments #

Total comments: 4

Patch Set 9 : Darin's suggested renames #

Patch Set 10 : finish strings typedef rename #

Patch Set 11 : fix include that caused android build failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -41 lines) Patch
M base/strings/string_split.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M base/strings/string_split.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_result.h View 1 2 3 4 5 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_result.cc View 1 2 3 4 5 6 7 6 chunks +73 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_result_unittest.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +81 lines, -1 line 0 comments Download
M chrome/browser/omnibox/omnibox_field_trial.h View 1 2 3 4 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/omnibox/omnibox_field_trial.cc View 1 2 3 4 5 6 7 8 9 3 chunks +31 lines, -0 lines 0 comments Download
M chrome/browser/omnibox/omnibox_field_trial_unittest.cc View 1 2 3 4 5 6 7 4 chunks +57 lines, -18 lines 0 comments Download
M chrome/common/metrics/variations/variations_associated_data.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/common/metrics/variations/variations_associated_data.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Mark P
Hi guys, Peter - can you review the autocomplete/... and omnibox/... files? Alexei - can ...
7 years, 4 months ago (2013-08-03 05:39:12 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/22031002/diff/3001/chrome/browser/autocomplete/autocomplete_result_unittest.cc File chrome/browser/autocomplete/autocomplete_result_unittest.cc (right): https://codereview.chromium.org/22031002/diff/3001/chrome/browser/autocomplete/autocomplete_result_unittest.cc#newcode39 chrome/browser/autocomplete/autocomplete_result_unittest.cc:39: if (field_trial_list_) Use a scoped_ptr here too (same as ...
7 years, 4 months ago (2013-08-05 18:33:11 UTC) #2
Mark P
https://codereview.chromium.org/22031002/diff/3001/chrome/browser/autocomplete/autocomplete_result_unittest.cc File chrome/browser/autocomplete/autocomplete_result_unittest.cc (right): https://codereview.chromium.org/22031002/diff/3001/chrome/browser/autocomplete/autocomplete_result_unittest.cc#newcode39 chrome/browser/autocomplete/autocomplete_result_unittest.cc:39: if (field_trial_list_) On 2013/08/05 18:33:11, Alexei Svitkine wrote: > ...
7 years, 4 months ago (2013-08-05 22:11:41 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/22031002/diff/3001/chrome/browser/omnibox/omnibox_field_trial_unittest.cc File chrome/browser/omnibox/omnibox_field_trial_unittest.cc (right): https://codereview.chromium.org/22031002/diff/3001/chrome/browser/omnibox/omnibox_field_trial_unittest.cc#newcode21 chrome/browser/omnibox/omnibox_field_trial_unittest.cc:21: delete field_trial_list_; On 2013/08/05 22:11:41, Mark P wrote: > ...
7 years, 4 months ago (2013-08-06 18:20:41 UTC) #4
Peter Kasting
LGTM https://codereview.chromium.org/22031002/diff/3001/chrome/browser/autocomplete/autocomplete_result.cc File chrome/browser/autocomplete/autocomplete_result.cc (right): https://codereview.chromium.org/22031002/diff/3001/chrome/browser/autocomplete/autocomplete_result.cc#newcode18 chrome/browser/autocomplete/autocomplete_result.cc:18: // that allows match of particular types to ...
7 years, 4 months ago (2013-08-06 19:33:50 UTC) #5
Mark P
This comment is for Alexei. I'll reply to Peter's comments shortly. --mark https://codereview.chromium.org/22031002/diff/3001/chrome/browser/omnibox/omnibox_field_trial_unittest.cc File chrome/browser/omnibox/omnibox_field_trial_unittest.cc ...
7 years, 4 months ago (2013-08-06 19:52:18 UTC) #6
Alexei Svitkine (slow)
Ah, I see what's going on. The new FieldTrialList is being constructed while the old ...
7 years, 4 months ago (2013-08-06 20:05:38 UTC) #7
Peter Kasting
On 2013/08/06 20:05:38, Alexei Svitkine wrote: > Ah, I see what's going on. The new ...
7 years, 4 months ago (2013-08-06 20:07:59 UTC) #8
Alexei Svitkine (slow)
On 2013/08/06 20:07:59, Peter Kasting wrote: > On 2013/08/06 20:05:38, Alexei Svitkine wrote: > > ...
7 years, 4 months ago (2013-08-06 20:15:08 UTC) #9
Mark P
All comments fixed, plus revised both field trial to use Alexei's suggestion of a scoped_ptr. ...
7 years, 4 months ago (2013-08-06 22:00:15 UTC) #10
Peter Kasting
LGTM https://codereview.chromium.org/22031002/diff/3001/chrome/browser/autocomplete/autocomplete_result.cc File chrome/browser/autocomplete/autocomplete_result.cc (right): https://codereview.chromium.org/22031002/diff/3001/chrome/browser/autocomplete/autocomplete_result.cc#newcode158 chrome/browser/autocomplete/autocomplete_result.cc:158: for (num_matches = 0u; (num_matches < max_num_matches) && ...
7 years, 4 months ago (2013-08-06 22:19:40 UTC) #11
Alexei Svitkine (slow)
lgtm with nits Thanks! https://codereview.chromium.org/22031002/diff/35001/chrome/browser/omnibox/omnibox_field_trial.cc File chrome/browser/omnibox/omnibox_field_trial.cc (right): https://codereview.chromium.org/22031002/diff/35001/chrome/browser/omnibox/omnibox_field_trial.cc#newcode251 chrome/browser/omnibox/omnibox_field_trial.cc:251: // std::vector<std::pair<std::string, std::string> > Nit: ...
7 years, 4 months ago (2013-08-06 22:26:32 UTC) #12
Mark P
https://codereview.chromium.org/22031002/diff/3001/chrome/browser/autocomplete/autocomplete_result.cc File chrome/browser/autocomplete/autocomplete_result.cc (right): https://codereview.chromium.org/22031002/diff/3001/chrome/browser/autocomplete/autocomplete_result.cc#newcode158 chrome/browser/autocomplete/autocomplete_result.cc:158: for (num_matches = 0u; (num_matches < max_num_matches) && On ...
7 years, 4 months ago (2013-08-06 22:44:48 UTC) #13
Peter Kasting
https://codereview.chromium.org/22031002/diff/25001/base/strings/string_split.h File base/strings/string_split.h (right): https://codereview.chromium.org/22031002/diff/25001/base/strings/string_split.h#newcode39 base/strings/string_split.h:39: typedef std::vector<std::pair<std::string, std::string> > VectorOfKeyValuePairs; On 2013/08/06 22:44:49, Mark ...
7 years, 4 months ago (2013-08-07 00:59:00 UTC) #14
Mark P
Brett, could you please review the base/strings/... change? thanks, mark
7 years, 4 months ago (2013-08-07 01:03:04 UTC) #15
Mark P
Brett, could you please review the base/strings/... change? I've got two other changes backed up ...
7 years, 4 months ago (2013-08-07 22:36:37 UTC) #16
Mark P
Darin, Could you please review and approve the base/strings/... change? It should be a really ...
7 years, 4 months ago (2013-08-08 01:12:38 UTC) #17
darin (slow to review)
https://codereview.chromium.org/22031002/diff/27002/base/strings/string_split.h File base/strings/string_split.h (right): https://codereview.chromium.org/22031002/diff/27002/base/strings/string_split.h#newcode39 base/strings/string_split.h:39: typedef std::vector<std::pair<std::string, std::string> > KeyValuePairs; If I saw base::KeyValuePairs ...
7 years, 4 months ago (2013-08-08 04:40:55 UTC) #18
Mark P
https://codereview.chromium.org/22031002/diff/27002/base/strings/string_split.h File base/strings/string_split.h (right): https://codereview.chromium.org/22031002/diff/27002/base/strings/string_split.h#newcode39 base/strings/string_split.h:39: typedef std::vector<std::pair<std::string, std::string> > KeyValuePairs; On 2013/08/08 04:40:55, darin ...
7 years, 4 months ago (2013-08-08 13:16:01 UTC) #19
darin (slow to review)
LGTM for base/ On Aug 8, 2013 6:16 AM, <mpearson@chromium.org> wrote: > > https://codereview.chromium.**org/22031002/diff/27002/base/** > ...
7 years, 4 months ago (2013-08-08 14:01:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/22031002/49001
7 years, 4 months ago (2013-08-08 14:14:13 UTC) #21
commit-bot: I haz the power
Failed to trigger a try job on win_x64_rel HTTP Error 400: Bad Request
7 years, 4 months ago (2013-08-08 19:39:50 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/22031002/69001
7 years, 4 months ago (2013-08-08 19:44:02 UTC) #23
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-08-08 20:28:05 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/22031002/69001
7 years, 4 months ago (2013-08-08 21:16:40 UTC) #25
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 4 months ago (2013-08-08 21:40:35 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/22031002/88001
7 years, 4 months ago (2013-08-08 22:05:47 UTC) #27
commit-bot: I haz the power
7 years, 4 months ago (2013-08-09 07:37:32 UTC) #28
Message was sent while issue was closed.
Change committed as 216633

Powered by Google App Engine
This is Rietveld 408576698