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

Issue 11522009: X-Chrome-Variations logic refactoring (Closed)

Created:
8 years ago by Bart N.
Modified:
8 years ago
CC:
chromium-reviews, James Su, darin-cc_chromium.org
Visibility:
Public.

Description

X-Chrome-Variations refactoring. Caveats: (1) I had to add a lock since both AC and RDH run on different threads (2) Because the cache is lazily initialized, it's possible that a few AC requests will run without headers (3) SP doesn't have access to ResourceContext and in turn we can't get ProfileIOData, so we can't transmit "UMA is enabled" header (4) I used a singleton BUG=163999 TEST=hand tested by adding LOG(INFO) and checking headers sent on autocomplete/search requests Also, ran tcpdump and observed transmitted headers. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173740

Patch Set 1 #

Total comments: 36

Patch Set 2 : Addressed comments. #

Total comments: 6

Patch Set 3 : Renamed SuggestFieldTrial and updated exp IDs range. #

Total comments: 14

Patch Set 4 : #

Patch Set 5 : Addressed all remaining comments. #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : Addressed Steve's comments. #

Patch Set 8 : Merged with head. #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -161 lines) Patch
M chrome/browser/autocomplete/autocomplete_field_trial.cc View 1 2 3 4 5 6 7 4 chunks +13 lines, -13 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download
A chrome/browser/chrome_metrics_helper.h View 1 2 3 4 1 chunk +83 lines, -0 lines 8 comments Download
A chrome/browser/chrome_metrics_helper.cc View 1 2 3 4 5 6 1 chunk +134 lines, -0 lines 4 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h View 4 chunks +1 line, -30 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 6 chunks +16 lines, -117 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/metrics/variations/variation_ids.h View 1 2 3 4 5 6 7 1 chunk +11 lines, -1 line 0 comments Download

Messages

Total messages: 54 (0 generated)
Bart N.
The initial implementation is ready for review. I've tested it by building a binary and ...
8 years ago (2012-12-11 00:11:59 UTC) #1
Peter Kasting
It seems like all the complexity of multithreading, locking, and a singleton is needed because ...
8 years ago (2012-12-11 21:08:48 UTC) #2
Bart N.
I left a few comments up to Steve to answer, as I'm not entirely sure ...
8 years ago (2012-12-11 23:18:56 UTC) #3
Peter Kasting
https://codereview.chromium.org/11522009/diff/1/chrome/browser/chrome_metrics_helper.cc File chrome/browser/chrome_metrics_helper.cc (right): https://codereview.chromium.org/11522009/diff/1/chrome/browser/chrome_metrics_helper.cc#newcode130 chrome/browser/chrome_metrics_helper.cc:130: void ChromeMetricsHelper::UpdateVariationIDsHeaderValue() { On 2012/12/11 23:18:56, Bart N. wrote: ...
8 years ago (2012-12-12 00:01:06 UTC) #4
Mark P
Per in-person discussion with Bart, he's going to add to this change: * change the ...
8 years ago (2012-12-12 00:56:08 UTC) #5
Bart N.
https://codereview.chromium.org/11522009/diff/1/chrome/browser/chrome_metrics_helper.cc File chrome/browser/chrome_metrics_helper.cc (right): https://codereview.chromium.org/11522009/diff/1/chrome/browser/chrome_metrics_helper.cc#newcode130 chrome/browser/chrome_metrics_helper.cc:130: void ChromeMetricsHelper::UpdateVariationIDsHeaderValue() { On 2012/12/12 00:01:06, Peter Kasting wrote: ...
8 years ago (2012-12-12 02:06:17 UTC) #6
Peter Kasting
On 2012/12/12 02:06:17, Bart N. wrote: > (1) The cost of acquiring a lock is ...
8 years ago (2012-12-12 02:13:47 UTC) #7
Bart N.
On 2012/12/12 02:13:47, Peter Kasting wrote: > On 2012/12/12 02:06:17, Bart N. wrote: > > ...
8 years ago (2012-12-12 02:32:34 UTC) #8
SteveT
Some comments and responses from me. Mostly looking good! One general question: The title of ...
8 years ago (2012-12-13 16:24:08 UTC) #9
Mark P
lgtm for the (trivial) changes to the autocomplete side (I know you'll need this OWNER ...
8 years ago (2012-12-14 01:30:54 UTC) #10
Mark P
Oops, realized I LGTMed this too soon. Ping me again when you've changed the suggest ...
8 years ago (2012-12-14 15:57:30 UTC) #11
Bart N.
On 2012/12/14 15:57:30, Mark P wrote: > Oops, realized I LGTMed this too soon. Ping ...
8 years ago (2012-12-14 16:46:18 UTC) #12
Mark P
minor nits, now properly LGTM from the autocomplete side https://codereview.chromium.org/11522009/diff/16001/chrome/browser/autocomplete/autocomplete_field_trial.cc File chrome/browser/autocomplete/autocomplete_field_trial.cc (right): https://codereview.chromium.org/11522009/diff/16001/chrome/browser/autocomplete/autocomplete_field_trial.cc#newcode139 chrome/browser/autocomplete/autocomplete_field_trial.cc:139: ...
8 years ago (2012-12-14 16:56:41 UTC) #13
Bart N.
https://codereview.chromium.org/11522009/diff/16001/chrome/browser/autocomplete/autocomplete_field_trial.cc File chrome/browser/autocomplete/autocomplete_field_trial.cc (right): https://codereview.chromium.org/11522009/diff/16001/chrome/browser/autocomplete/autocomplete_field_trial.cc#newcode139 chrome/browser/autocomplete/autocomplete_field_trial.cc:139: "0", 2013, 7, 1, NULL); On 2012/12/14 16:56:41, Mark ...
8 years ago (2012-12-14 17:06:06 UTC) #14
Mark P
https://codereview.chromium.org/11522009/diff/16001/chrome/browser/autocomplete/autocomplete_field_trial.cc File chrome/browser/autocomplete/autocomplete_field_trial.cc (right): https://codereview.chromium.org/11522009/diff/16001/chrome/browser/autocomplete/autocomplete_field_trial.cc#newcode139 chrome/browser/autocomplete/autocomplete_field_trial.cc:139: "0", 2013, 7, 1, NULL); On 2012/12/14 17:06:07, Bart ...
8 years ago (2012-12-14 17:09:55 UTC) #15
Bart N.
Steve, it's ready for your review. Mark, FYI: I've slightly changed the search provider's change, ...
8 years ago (2012-12-14 18:21:42 UTC) #16
SteveT
A couple small comments inline. I think we're pretty close. Did you try E2E tests ...
8 years ago (2012-12-14 18:35:41 UTC) #17
Mark P
Still looks good on the autocomplete side. https://codereview.chromium.org/11522009/diff/16001/chrome/browser/autocomplete/autocomplete_field_trial.cc File chrome/browser/autocomplete/autocomplete_field_trial.cc (right): https://codereview.chromium.org/11522009/diff/16001/chrome/browser/autocomplete/autocomplete_field_trial.cc#newcode139 chrome/browser/autocomplete/autocomplete_field_trial.cc:139: "0", 2013, ...
8 years ago (2012-12-14 18:37:34 UTC) #18
Bart N.
On 2012/12/14 18:35:41, SteveT wrote: > A couple small comments inline. I think we're pretty ...
8 years ago (2012-12-14 18:46:55 UTC) #19
Bart N.
https://codereview.chromium.org/11522009/diff/16001/chrome/browser/autocomplete/autocomplete_field_trial.cc File chrome/browser/autocomplete/autocomplete_field_trial.cc (right): https://codereview.chromium.org/11522009/diff/16001/chrome/browser/autocomplete/autocomplete_field_trial.cc#newcode139 chrome/browser/autocomplete/autocomplete_field_trial.cc:139: "0", 2013, 7, 1, NULL); On 2012/12/14 18:37:34, Mark ...
8 years ago (2012-12-14 18:52:33 UTC) #20
SteveT
Waiting on your thread-related bot fixes before I give you the lg.tm.
8 years ago (2012-12-15 20:25:35 UTC) #21
Bart N.
On 2012/12/15 20:25:35, SteveT wrote: > Waiting on your thread-related bot fixes before I give ...
8 years ago (2012-12-15 21:09:23 UTC) #22
Bart N.
On 2012/12/15 21:09:23, Bart N. wrote: > On 2012/12/15 20:25:35, SteveT wrote: > > Waiting ...
8 years ago (2012-12-15 21:18:28 UTC) #23
Bart N.
Steve, I believe I've addressed all your comments, specifically: (1) CL title and description are ...
8 years ago (2012-12-16 00:09:09 UTC) #24
SteveT
LGTM - just wanted to check that our threading assumptions were still good. I think ...
8 years ago (2012-12-17 02:59:42 UTC) #25
Mark P
lgtm Still looks good from the autocomplete/... side
8 years ago (2012-12-17 11:43:32 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartn@chromium.org/11522009/32004
8 years ago (2012-12-17 16:58:50 UTC) #27
commit-bot: I haz the power
Presubmit check for 11522009-32004 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-17 16:59:02 UTC) #28
Bart N.
Scott/Ben, can you stamp the top level chrome/chrome_browser.gypi change, please?
8 years ago (2012-12-17 17:04:52 UTC) #29
sky
LGTM
8 years ago (2012-12-17 17:40:45 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartn@chromium.org/11522009/32004
8 years ago (2012-12-17 17:50:20 UTC) #31
Peter Kasting
Steve, need you to take a look at some of my comments here. https://codereview.chromium.org/11522009/diff/32004/chrome/browser/chrome_metrics_helper.cc File ...
8 years ago (2012-12-17 19:51:57 UTC) #32
SteveT
Back to you guys - sorry about missing those comments earlier. https://codereview.chromium.org/11522009/diff/32004/chrome/browser/chrome_metrics_helper.cc File chrome/browser/chrome_metrics_helper.cc (right): ...
8 years ago (2012-12-17 20:30:46 UTC) #33
Bart N.
One more high level comment - we agreed with Peter to uncheck the commit checkbox ...
8 years ago (2012-12-17 20:43:35 UTC) #34
SteveT
Back to you. https://codereview.chromium.org/11522009/diff/32004/chrome/browser/chrome_metrics_helper.h File chrome/browser/chrome_metrics_helper.h (right): https://codereview.chromium.org/11522009/diff/32004/chrome/browser/chrome_metrics_helper.h#newcode32 chrome/browser/chrome_metrics_helper.h:32: // This class is a thread-safe ...
8 years ago (2012-12-17 20:49:56 UTC) #35
Bart N.
https://codereview.chromium.org/11522009/diff/32004/chrome/browser/chrome_metrics_helper.h File chrome/browser/chrome_metrics_helper.h (right): https://codereview.chromium.org/11522009/diff/32004/chrome/browser/chrome_metrics_helper.h#newcode32 chrome/browser/chrome_metrics_helper.h:32: // This class is a thread-safe singleton. On 2012/12/17 ...
8 years ago (2012-12-17 21:09:13 UTC) #36
Peter Kasting
On 2012/12/17 20:49:56, SteveT wrote: > GetActiveFieldTrialGroups (you were referring to this, right?) is itself ...
8 years ago (2012-12-17 21:10:10 UTC) #37
SteveT
On 2012/12/17 21:10:10, Peter Kasting wrote: > On 2012/12/17 20:49:56, SteveT wrote: > > GetActiveFieldTrialGroups ...
8 years ago (2012-12-17 21:17:31 UTC) #38
SteveT
That last mail didn't transmit this inline comment with my proposal... https://codereview.chromium.org/11522009/diff/32004/chrome/browser/chrome_metrics_helper.h File chrome/browser/chrome_metrics_helper.h (right): ...
8 years ago (2012-12-17 21:17:59 UTC) #39
Peter Kasting
The comment about possible not putting this in field_trials.cc is certainly a reasonable concern. I ...
8 years ago (2012-12-17 21:45:28 UTC) #40
SteveT
Bart - Feel free to proceed with what's best for you here. If measuring the ...
8 years ago (2012-12-17 22:04:54 UTC) #41
Bart N.
Hey guys - a few remarks from my side. First of all, Peter, I'm pretty ...
8 years ago (2012-12-17 22:13:46 UTC) #42
Bart N.
On 2012/12/17 22:04:54, SteveT wrote: > Bart - Feel free to proceed with what's best ...
8 years ago (2012-12-17 22:15:29 UTC) #43
odean
Regarding the question of incognito mode: we made a decision to omit incognito windows from ...
8 years ago (2012-12-17 22:51:07 UTC) #44
Peter Kasting
On 2012/12/17 22:13:46, Bart N. wrote: > First of all, Peter, I'm pretty sure you ...
8 years ago (2012-12-18 00:55:04 UTC) #45
Peter Kasting
On 2012/12/17 22:51:07, odean wrote: > Regarding the question of incognito mode: we made a ...
8 years ago (2012-12-18 00:58:20 UTC) #46
Bart N.
On 2012/12/18 00:55:04, Peter Kasting wrote: > On 2012/12/17 22:13:46, Bart N. wrote: > > ...
8 years ago (2012-12-18 02:01:24 UTC) #47
Peter Kasting
On 2012/12/18 02:01:24, Bart N. wrote: > Peter, I think you are overoptimistic; in fact ...
8 years ago (2012-12-18 02:14:05 UTC) #48
SteveT
I believe we've roughly agreed that we can address these additional performance issues in a ...
8 years ago (2012-12-18 14:55:18 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartn@chromium.org/11522009/32004
8 years ago (2012-12-18 14:55:33 UTC) #50
commit-bot: I haz the power
Change committed as 173740
8 years ago (2012-12-18 17:01:33 UTC) #51
SteveT
Hey guys, looks like this patch didn't make it into M25 (which branched at 173683). ...
8 years ago (2012-12-19 19:30:31 UTC) #52
Peter Kasting
On 2012/12/19 19:30:31, SteveT wrote: > Hey guys, looks like this patch didn't make it ...
8 years ago (2012-12-19 20:30:17 UTC) #53
SteveT
8 years ago (2012-12-19 20:38:39 UTC) #54
Message was sent while issue was closed.
Cool, thanks. Merge requested. We'll see what the TPMs say.

In the meantime I'll start planning the testing and refactoring...

Powered by Google App Engine
This is Rietveld 408576698