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

Issue 7558014: Add a URL param to indicate group selection in Instant field trial. (Closed)

Created:
9 years, 4 months ago by sreeram
Modified:
9 years, 4 months ago
CC:
chromium-reviews, tfarina, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add a URL param to indicate group selection in Instant field trial. Currently, if the user is chosen into an Instant field trial group, this information is not indicated in the suggest or search request URLs. Such a URL param will allow us to analyze experiment metrics from server logs. Most of the changes here are because we need to pass the Profile information through to the Instant field trial code. BUG=91536 TEST=Observe ix=c or ix=e showing up in the URLs sent for suggest/search. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96954

Patch Set 1 #

Total comments: 6

Patch Set 2 : Thread safe handling of Profiles #

Total comments: 14

Patch Set 3 : Passing NULL as far as possible #

Total comments: 5

Patch Set 4 : Now with the fewest changes possible #

Total comments: 11

Patch Set 5 : Addressed @pkasting's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -23 lines) Patch
M chrome/browser/autocomplete/keyword_provider.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider.cc View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 2 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/instant/instant_field_trial.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_field_trial.cc View 1 2 3 2 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/instant/instant_loader.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/search_terms_data.h View 1 2 3 4 4 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/search_terms_data.cc View 1 2 3 4 3 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/search_engines/template_url.h View 1 2 3 4 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url.cc View 1 2 3 4 4 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data.cc View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser_init.cc View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
sreeram
Please review.
9 years, 4 months ago (2011-08-08 23:17:24 UTC) #1
sky
http://codereview.chromium.org/7558014/diff/1/chrome/browser/search_engines/template_url.cc File chrome/browser/search_engines/template_url.cc (right): http://codereview.chromium.org/7558014/diff/1/chrome/browser/search_engines/template_url.cc#newcode67 chrome/browser/search_engines/template_url.cc:67: "instantFieldTrialGroupParameter"; Since this is google specific, use google: http://codereview.chromium.org/7558014/diff/1/chrome/browser/search_engines/template_url.h ...
9 years, 4 months ago (2011-08-08 23:37:23 UTC) #2
sky
I've added Peter to the review list since I'll be OOO starting tomorrow. -Scott
9 years, 4 months ago (2011-08-08 23:38:13 UTC) #3
sreeram
http://codereview.chromium.org/7558014/diff/1/chrome/browser/search_engines/template_url.cc File chrome/browser/search_engines/template_url.cc (right): http://codereview.chromium.org/7558014/diff/1/chrome/browser/search_engines/template_url.cc#newcode67 chrome/browser/search_engines/template_url.cc:67: "instantFieldTrialGroupParameter"; On 2011/08/08 23:37:23, sky wrote: > Since this ...
9 years, 4 months ago (2011-08-09 16:24:01 UTC) #4
Peter Kasting
On 2011/08/09 16:24:01, sreeram wrote: > On 2011/08/08 23:37:23, sky wrote: > > This too ...
9 years, 4 months ago (2011-08-09 19:43:15 UTC) #5
sreeram
On Tue, Aug 9, 2011 at 12:43, <pkasting@chromium.org> wrote: > It is a requirement in ...
9 years, 4 months ago (2011-08-09 20:16:43 UTC) #6
Peter Kasting
On Tue, Aug 9, 2011 at 1:15 PM, Sreeram Ramachandran <sreeram@chromium.org>wrote: > It seems then ...
9 years, 4 months ago (2011-08-09 20:25:30 UTC) #7
sreeram
Please take another look. Here's what I am doing now: + The *UsingTermsData methods (GenerateSearchURLUsingTermsData ...
9 years, 4 months ago (2011-08-10 18:20:38 UTC) #8
Peter Kasting
The summary of my comments below is that by allowing the field trial to handle ...
9 years, 4 months ago (2011-08-10 20:54:06 UTC) #9
sreeram
On 2011/08/10 20:54:06, Peter Kasting wrote: > The summary of my comments below is that ...
9 years, 4 months ago (2011-08-10 23:25:49 UTC) #10
Peter Kasting
http://codereview.chromium.org/7558014/diff/9004/chrome/browser/autocomplete/search_provider_unittest.cc File chrome/browser/autocomplete/search_provider_unittest.cc (right): http://codereview.chromium.org/7558014/diff/9004/chrome/browser/autocomplete/search_provider_unittest.cc#newcode204 chrome/browser/autocomplete/search_provider_unittest.cc:204: &profile_, *default_t_url_, text, 0, string16())), wyt_match)); Seems like this ...
9 years, 4 months ago (2011-08-11 00:35:16 UTC) #11
sreeram
Okay, I get your drift. I've now introduced a new method (why didn't I think ...
9 years, 4 months ago (2011-08-11 17:52:11 UTC) #12
Peter Kasting
LGTM http://codereview.chromium.org/7558014/diff/16001/chrome/browser/search_engines/search_terms_data.h File chrome/browser/search_engines/search_terms_data.h (right): http://codereview.chromium.org/7558014/diff/16001/chrome/browser/search_engines/search_terms_data.h#newcode39 chrome/browser/search_engines/search_terms_data.h:39: // if the field trial is not active. ...
9 years, 4 months ago (2011-08-11 18:04:33 UTC) #13
sreeram
http://codereview.chromium.org/7558014/diff/16001/chrome/browser/search_engines/search_terms_data.h File chrome/browser/search_engines/search_terms_data.h (right): http://codereview.chromium.org/7558014/diff/16001/chrome/browser/search_engines/search_terms_data.h#newcode39 chrome/browser/search_engines/search_terms_data.h:39: // if the field trial is not active. On ...
9 years, 4 months ago (2011-08-11 18:22:19 UTC) #14
commit-bot: I haz the power
9 years, 4 months ago (2011-08-16 16:16:18 UTC) #15
Change committed as 96954

Powered by Google App Engine
This is Rietveld 408576698