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

Issue 11737025: Add a switch for faking channels for Variations filtering. (Closed)

Created:
7 years, 11 months ago by SteveT
Modified:
7 years, 11 months ago
CC:
chromium-reviews, MAD, Ilya Sherman, jar (doing other things)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add a switch for faking channels for Variations filtering. BUG=162417 TEST=Run Chromium (unofficial build) with --fake-variations-channel=stable and ensure that a stable experiment, such as "UMA-Dynamic-Binary-Uniformity-Trial" shows up in about:version (after restarting once). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175437

Patch Set 1 #

Patch Set 2 : Honour set channels #

Total comments: 2

Patch Set 3 : update comment #

Total comments: 6

Patch Set 4 : asvit nits #

Total comments: 1

Patch Set 5 : parameterize the channel #

Total comments: 3

Patch Set 6 : curlies #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -6 lines) Patch
M chrome/browser/metrics/variations/variations_service.h View 1 2 3 4 5 6 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.cc View 1 2 3 4 5 6 3 chunks +32 lines, -3 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
SteveT
PTAL. Let me know if you can think of a better way of reusing an ...
7 years, 11 months ago (2013-01-03 22:02:58 UTC) #1
jwd
This will work in official builds too right? Do we want to be able to ...
7 years, 11 months ago (2013-01-04 15:37:53 UTC) #2
SteveT
I like the idea of only overring the channel if it is UNKNOWN. PTAL at ...
7 years, 11 months ago (2013-01-04 16:12:21 UTC) #3
SteveT
Oh, and this thing is blocked on https://codereview.chromium.org/11753014/, which I sort of need to test ...
7 years, 11 months ago (2013-01-04 16:12:56 UTC) #4
jwd
https://codereview.chromium.org/11737025/diff/4001/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): https://codereview.chromium.org/11737025/diff/4001/chrome/common/chrome_switches.cc#newcode684 chrome/common/chrome_switches.cc:684: // and "canary". What about a comment here about ...
7 years, 11 months ago (2013-01-04 16:19:07 UTC) #5
SteveT
PTAL. https://codereview.chromium.org/11737025/diff/4001/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): https://codereview.chromium.org/11737025/diff/4001/chrome/common/chrome_switches.cc#newcode684 chrome/common/chrome_switches.cc:684: // and "canary". On 2013/01/04 16:19:07, Jesse Doherty ...
7 years, 11 months ago (2013-01-04 16:27:07 UTC) #6
jwd
LGTM Still need a committer LGTM though.
7 years, 11 months ago (2013-01-04 16:31:06 UTC) #7
SteveT
R+asvitkine for a committer approval
7 years, 11 months ago (2013-01-04 16:46:24 UTC) #8
Alexei Svitkine (slow)
https://codereview.chromium.org/11737025/diff/9001/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (right): https://codereview.chromium.org/11737025/diff/9001/chrome/browser/metrics/variations/variations_service.cc#newcode280 chrome/browser/metrics/variations/variations_service.cc:280: chrome::VersionInfo::Channel VariationsService::GetChannelForVariations() { Stick this in an anon namespace, ...
7 years, 11 months ago (2013-01-04 19:56:34 UTC) #9
SteveT
Back to you. https://codereview.chromium.org/11737025/diff/9001/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (right): https://codereview.chromium.org/11737025/diff/9001/chrome/browser/metrics/variations/variations_service.cc#newcode280 chrome/browser/metrics/variations/variations_service.cc:280: chrome::VersionInfo::Channel VariationsService::GetChannelForVariations() { Moved. https://codereview.chromium.org/11737025/diff/9001/chrome/browser/metrics/variations/variations_service.cc#newcode287 chrome/browser/metrics/variations/variations_service.cc:287: ...
7 years, 11 months ago (2013-01-04 20:09:47 UTC) #10
Alexei Svitkine (slow)
Thanks. Just one more comment. https://codereview.chromium.org/11737025/diff/18001/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (left): https://codereview.chromium.org/11737025/diff/18001/chrome/browser/metrics/variations/variations_service.cc#oldcode285 chrome/browser/metrics/variations/variations_service.cc:285: if (!CheckStudyChannel(study.filter(), chrome::VersionInfo::GetChannel())) { ...
7 years, 11 months ago (2013-01-04 20:17:34 UTC) #11
SteveT
Great suggestion. Done. PTAL.
7 years, 11 months ago (2013-01-04 20:28:45 UTC) #12
Alexei Svitkine (slow)
LGTM with a nit. https://codereview.chromium.org/11737025/diff/21001/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (right): https://codereview.chromium.org/11737025/diff/21001/chrome/browser/metrics/variations/variations_service.cc#newcode168 chrome/browser/metrics/variations/variations_service.cc:168: CreateTrialFromStudy(seed.study(i), reference_date); Nit: Align |channel| ...
7 years, 11 months ago (2013-01-04 20:32:16 UTC) #13
SteveT
Okay, thanks for the review! Will commit once I get the blocking patch in, which ...
7 years, 11 months ago (2013-01-07 15:43:05 UTC) #14
Alexei Svitkine (slow)
https://codereview.chromium.org/11737025/diff/21001/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (right): https://codereview.chromium.org/11737025/diff/21001/chrome/browser/metrics/variations/variations_service.cc#newcode168 chrome/browser/metrics/variations/variations_service.cc:168: CreateTrialFromStudy(seed.study(i), reference_date); On 2013/01/07 15:43:05, SteveT wrote: > I ...
7 years, 11 months ago (2013-01-07 15:51:43 UTC) #15
SteveT
Okay cool - I think it was someone else who had a preference for no ...
7 years, 11 months ago (2013-01-07 19:04:58 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/11737025/19003
7 years, 11 months ago (2013-01-07 19:06:58 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) interactive_ui_tests
7 years, 11 months ago (2013-01-07 20:52:13 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/11737025/19003
7 years, 11 months ago (2013-01-07 21:42:32 UTC) #19
commit-bot: I haz the power
7 years, 11 months ago (2013-01-08 01:04:43 UTC) #20
Message was sent while issue was closed.
Change committed as 175437

Powered by Google App Engine
This is Rietveld 408576698