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

Issue 10381021: Add filtering logic for client-side variations. (Closed)

Created:
8 years, 7 months ago by Alexei Svitkine (slow)
Modified:
8 years, 7 months ago
Reviewers:
Ilya Sherman, MAD, Steve, SteveT
CC:
chromium-reviews, MAD, Ilya Sherman, jar (doing other things), finch-team_google.com
Visibility:
Public.

Description

Add filtering logic for client-side variations. BUG=126512 TEST=variation_service_unittest.cc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135757

Patch Set 1 : - #

Total comments: 18

Patch Set 2 : rebased #

Patch Set 3 : address comments #

Total comments: 2

Patch Set 4 : address final nits #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -0 lines) Patch
M chrome/browser/metrics/variations_service.h View 1 3 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/metrics/variations_service.cc View 1 2 3 chunks +108 lines, -0 lines 4 comments Download
A chrome/browser/metrics/variations_service_unittest.cc View 1 2 3 1 chunk +211 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Alexei Svitkine (slow)
8 years, 7 months ago (2012-05-04 22:38:48 UTC) #1
MAD
Here are my comments... Good stuff! BYE MAD... http://codereview.chromium.org/10381021/diff/3001/chrome/browser/metrics/variations_service.cc File chrome/browser/metrics/variations_service.cc (right): http://codereview.chromium.org/10381021/diff/3001/chrome/browser/metrics/variations_service.cc#newcode40 chrome/browser/metrics/variations_service.cc:40: } ...
8 years, 7 months ago (2012-05-05 13:51:17 UTC) #2
Alexei Svitkine (slow)
Thanks for the review! I'll likely address the code changes Monday morning, but here are ...
8 years, 7 months ago (2012-05-05 15:14:37 UTC) #3
Alexei Svitkine (slow)
All comments addressed, please PTAL. Thanks! http://codereview.chromium.org/10381021/diff/3001/chrome/browser/metrics/variations_service.cc File chrome/browser/metrics/variations_service.cc (right): http://codereview.chromium.org/10381021/diff/3001/chrome/browser/metrics/variations_service.cc#newcode40 chrome/browser/metrics/variations_service.cc:40: } On 2012/05/05 ...
8 years, 7 months ago (2012-05-07 15:49:51 UTC) #4
SteveT
Hey, is the chrome_variations::Study stuff (study.pb.h) introduced for the first time here? If so, be ...
8 years, 7 months ago (2012-05-07 16:34:52 UTC) #5
Alexei Svitkine (slow)
On 2012/05/07 16:34:52, SteveT wrote: > Hey, is the chrome_variations::Study stuff (study.pb.h) introduced for the ...
8 years, 7 months ago (2012-05-07 16:44:18 UTC) #6
Steve
Most excellent. On Mon, May 7, 2012 at 12:44 PM, <asvitkine@chromium.org> wrote: > On 2012/05/07 ...
8 years, 7 months ago (2012-05-07 16:46:35 UTC) #7
MAD
LGTM with two small nits... Thanks for the fixes! BYE MAD... http://codereview.chromium.org/10381021/diff/9001/chrome/browser/metrics/variations_service_unittest.cc File chrome/browser/metrics/variations_service_unittest.cc (right): ...
8 years, 7 months ago (2012-05-07 18:10:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/10381021/3004
8 years, 7 months ago (2012-05-07 18:21:01 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/10381021/3004
8 years, 7 months ago (2012-05-07 18:43:15 UTC) #10
Ilya Sherman
Couple of drive-by comments. I'm hoping these won't somehow confuse the CQ and cancel the ...
8 years, 7 months ago (2012-05-07 22:49:03 UTC) #11
commit-bot: I haz the power
Change committed as 135757
8 years, 7 months ago (2012-05-08 00:11:59 UTC) #12
Alexei Svitkine (slow)
http://codereview.chromium.org/10381021/diff/3004/chrome/browser/metrics/variations_service.cc File chrome/browser/metrics/variations_service.cc (right): http://codereview.chromium.org/10381021/diff/3004/chrome/browser/metrics/variations_service.cc#newcode136 chrome/browser/metrics/variations_service.cc:136: if (!CheckStudyDate(study, base::GetBuildTime())) { On 2012/05/07 22:49:04, Ilya Sherman ...
8 years, 7 months ago (2012-05-08 14:43:24 UTC) #13
Ilya Sherman
8 years, 7 months ago (2012-05-08 22:36:30 UTC) #14
http://codereview.chromium.org/10381021/diff/3004/chrome/browser/metrics/vari...
File chrome/browser/metrics/variations_service.cc (right):

http://codereview.chromium.org/10381021/diff/3004/chrome/browser/metrics/vari...
chrome/browser/metrics/variations_service.cc:136: if (!CheckStudyDate(study,
base::GetBuildTime())) {
On 2012/05/08 14:43:25, Alexei Svitkine wrote:
> On 2012/05/07 22:49:04, Ilya Sherman wrote:
> > Hmm, this seems redundant with the version check.  Am I missing something,
or
> is
> > this intentionally meant to be a convenient way to filter based on future
> > versions according to their release date?
> 
> I agree, it's a bit strange. I think originally, the intention was to be able
to
> limit the trial to e.g. a period of a specific week, for example.
> 
> But in the end, we decided to use build time (at least for this original CL),
so
> that it's consistent with the field trials code expiry param. I agree that
this
> makes the original intent dubious since it's based on build time and not
system
> time.
> 
> We could discuss it in our weekly.

That sounds good.  I think it would also be helpful to document the current
decision in the corresponding protocol buffer comments, so that it's less likely
anyone adding a server-side configuration would be surprised by this...

Powered by Google App Engine
This is Rietveld 408576698