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

Issue 20777006: Omnibox: Create Bundled Field Trial; Convert SearchHistory trial to it (Closed)

Created:
7 years, 5 months ago by Mark P
Modified:
7 years, 4 months ago
CC:
chromium-reviews, James Su, Alexei Svitkine (slow)
Visibility:
Public.

Description

Omnibox: Create Bundled Field Trial; Convert SearchHistory trial to it Create one field trial that's intended to rule over all omnibox field trials. They allows our trials to run correlated. For example, suppose we have two trials A (with 50-50 groups a1 and a2) and B (with 50-50 groups b1 b2). Currently this yields four conditions users can be in 25% a1-b1, 25% a1-b2, 25% a2-b1, 25% a2-b2. This would be great, but what if we want to compare a1-b1 and a1-b2 and a2-b1 but think a2-b2 makes no sense. There's no way to do it with the current independent field trial framework. This change creates one field trial that supposed to include all omnibox field trials that we want to run. This change converts the SearchHistory field trial to this bundled field trial. Obviously, this trials-can-be-dependent property isn't useful until we add more experiments to this bundled field trial. I'll do that in another changelist. This change also gives this new bundled trial the ability to condition certain experiment on page context. In particular, depending on what the user is viewing when using the omnibox, the different experiments can be active. For example, an omnibox on the new tab page can have different experiments than the omnibox on an arbitrary web page. Tested using my own variations server with an appropriate config with various experiment params. BUG=264062, 264065, 263823 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215457

Patch Set 1 #

Patch Set 2 : now with tests! #

Patch Set 3 : refactor search history rule into omnibox_field_trial.cc #

Patch Set 4 : rebase #

Patch Set 5 : make GetConsequences private for now #

Total comments: 1

Patch Set 6 : make a friend #

Patch Set 7 : slightly revise comment #

Total comments: 21

Patch Set 8 : Peter's comments #

Total comments: 2

Patch Set 9 : Alexei's spacing suggestion #

Patch Set 10 : Alexei's spacing suggestion #

Total comments: 26

Patch Set 11 : Peter's comments #

Total comments: 2

Patch Set 12 : make context stuff clearer, better comment unit test #

Total comments: 2

Patch Set 13 : revise comment #

Patch Set 14 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -34 lines) Patch
M chrome/browser/autocomplete/search_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +15 lines, -13 lines 0 comments Download
M chrome/browser/omnibox/omnibox_field_trial.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +36 lines, -8 lines 0 comments Download
M chrome/browser/omnibox/omnibox_field_trial.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +51 lines, -7 lines 0 comments Download
M chrome/browser/omnibox/omnibox_field_trial_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +72 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Mark P
Peter - Can you take a look at this please? I think the change description ...
7 years, 4 months ago (2013-07-30 21:00:29 UTC) #1
Peter Kasting
LGTM https://codereview.chromium.org/20777006/diff/16001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/20777006/diff/16001/chrome/browser/autocomplete/search_provider.cc#newcode528 chrome/browser/autocomplete/search_provider.cc:528: input_.current_page_classification()); Nit: It seems like both of these ...
7 years, 4 months ago (2013-07-31 20:14:09 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/20777006/diff/16001/chrome/browser/omnibox/omnibox_field_trial_unittest.cc File chrome/browser/omnibox/omnibox_field_trial_unittest.cc (right): https://codereview.chromium.org/20777006/diff/16001/chrome/browser/omnibox/omnibox_field_trial_unittest.cc#newcode19 chrome/browser/omnibox/omnibox_field_trial_unittest.cc:19: ResetFieldTrialList(); Hmm, I think this keeps the field trial ...
7 years, 4 months ago (2013-07-31 20:27:46 UTC) #3
Mark P
please take another look, just to make sure you're comfortable with my responses. --mark https://codereview.chromium.org/20777006/diff/16001/chrome/browser/autocomplete/search_provider.cc ...
7 years, 4 months ago (2013-07-31 21:59:28 UTC) #4
Alexei Svitkine (slow)
lgtm with a nit https://codereview.chromium.org/20777006/diff/16001/chrome/browser/omnibox/omnibox_field_trial_unittest.cc File chrome/browser/omnibox/omnibox_field_trial_unittest.cc (right): https://codereview.chromium.org/20777006/diff/16001/chrome/browser/omnibox/omnibox_field_trial_unittest.cc#newcode137 chrome/browser/omnibox/omnibox_field_trial_unittest.cc:137: // defined in omnibox_field_trial.cc. On ...
7 years, 4 months ago (2013-08-01 15:25:35 UTC) #5
Mark P
https://codereview.chromium.org/20777006/diff/24001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/20777006/diff/24001/chrome/browser/autocomplete/search_provider.cc#newcode630 chrome/browser/autocomplete/search_provider.cc:630: input_.current_page_classification())) { On 2013/08/01 15:25:35, Alexei Svitkine wrote: > ...
7 years, 4 months ago (2013-08-01 17:23:32 UTC) #6
Mark P
Peter, Do you want to re-glance at this change or not? (You asked for some ...
7 years, 4 months ago (2013-08-01 22:24:33 UTC) #7
Peter Kasting
LGTM with a bunch of more minor suggestions. https://codereview.chromium.org/20777006/diff/34001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/20777006/diff/34001/chrome/browser/autocomplete/search_provider.cc#newcode630 chrome/browser/autocomplete/search_provider.cc:630: input_.current_page_classification())) ...
7 years, 4 months ago (2013-08-01 22:44:48 UTC) #8
Mark P
Some agreement, some pushback. Please take another look. --mark https://codereview.chromium.org/20777006/diff/34001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/20777006/diff/34001/chrome/browser/autocomplete/search_provider.cc#newcode630 chrome/browser/autocomplete/search_provider.cc:630: ...
7 years, 4 months ago (2013-08-02 00:44:35 UTC) #9
Peter Kasting
(Haven't re-reviewed) https://codereview.chromium.org/20777006/diff/34001/chrome/browser/omnibox/omnibox_field_trial.h File chrome/browser/omnibox/omnibox_field_trial.h (right): https://codereview.chromium.org/20777006/diff/34001/chrome/browser/omnibox/omnibox_field_trial.h#newcode131 chrome/browser/omnibox/omnibox_field_trial.h:131: static std::string GetValueOfRuleInPageClassificationContext( On 2013/08/02 00:44:36, Mark ...
7 years, 4 months ago (2013-08-02 00:49:33 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/20777006/diff/43001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/20777006/diff/43001/chrome/browser/autocomplete/search_provider.cc#newcode630 chrome/browser/autocomplete/search_provider.cc:630: input_.current_page_classification())) Peter, can you explain why this should be ...
7 years, 4 months ago (2013-08-02 15:25:34 UTC) #11
Peter Kasting
https://codereview.chromium.org/20777006/diff/43001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/20777006/diff/43001/chrome/browser/autocomplete/search_provider.cc#newcode630 chrome/browser/autocomplete/search_provider.cc:630: input_.current_page_classification())) On 2013/08/02 15:25:34, Alexei Svitkine wrote: > Peter, ...
7 years, 4 months ago (2013-08-02 18:17:55 UTC) #12
Mark P
https://codereview.chromium.org/20777006/diff/34001/chrome/browser/omnibox/omnibox_field_trial.h File chrome/browser/omnibox/omnibox_field_trial.h (right): https://codereview.chromium.org/20777006/diff/34001/chrome/browser/omnibox/omnibox_field_trial.h#newcode131 chrome/browser/omnibox/omnibox_field_trial.h:131: static std::string GetValueOfRuleInPageClassificationContext( On 2013/08/02 00:49:33, Peter Kasting wrote: ...
7 years, 4 months ago (2013-08-02 19:50:44 UTC) #13
Peter Kasting
LGTM https://codereview.chromium.org/20777006/diff/49001/chrome/browser/autocomplete/search_provider.h File chrome/browser/autocomplete/search_provider.h (right): https://codereview.chromium.org/20777006/diff/49001/chrome/browser/autocomplete/search_provider.h#newcode442 chrome/browser/autocomplete/search_provider.h:442: // allowed to exceed 1300. Nit: This last ...
7 years, 4 months ago (2013-08-02 19:57:41 UTC) #14
Mark P
7 years, 4 months ago (2013-08-02 20:00:57 UTC) #15
Mark P
https://codereview.chromium.org/20777006/diff/49001/chrome/browser/autocomplete/search_provider.h File chrome/browser/autocomplete/search_provider.h (right): https://codereview.chromium.org/20777006/diff/49001/chrome/browser/autocomplete/search_provider.h#newcode442 chrome/browser/autocomplete/search_provider.h:442: // allowed to exceed 1300. On 2013/08/02 19:57:41, Peter ...
7 years, 4 months ago (2013-08-02 20:01:48 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/20777006/46002
7 years, 4 months ago (2013-08-02 20:02:54 UTC) #17
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-02 20:10:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/20777006/70001
7 years, 4 months ago (2013-08-02 22:33:29 UTC) #19
commit-bot: I haz the power
7 years, 4 months ago (2013-08-03 02:10:20 UTC) #20
Message was sent while issue was closed.
Change committed as 215457

Powered by Google App Engine
This is Rietveld 408576698