diff options
author | asvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-07 01:53:13 +0000 |
---|---|---|
committer | asvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-07 01:53:13 +0000 |
commit | 41fccac06ffcd90189f3d4748229bd6602dffc51 (patch) | |
tree | 4c8c5f792d0f3cb296b40058537137d7a7db0a9f | |
parent | 19ff1b5effd3d932185afadfc092e28146a4177c (diff) | |
download | chromium_src-41fccac06ffcd90189f3d4748229bd6602dffc51.zip chromium_src-41fccac06ffcd90189f3d4748229bd6602dffc51.tar.gz chromium_src-41fccac06ffcd90189f3d4748229bd6602dffc51.tar.bz2 |
Update comment for UseOneTimeRandomizationWithCustomSeed().
This hopefully makes things more clear and should avoid some
confusion for people reading the API.
BUG=none
Review URL: https://chromiumcodereview.appspot.com/14858005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198591 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | base/metrics/field_trial.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/base/metrics/field_trial.h b/base/metrics/field_trial.h index b9a5b66..5ce9792 100644 --- a/base/metrics/field_trial.h +++ b/base/metrics/field_trial.h @@ -129,10 +129,12 @@ class BASE_EXPORT FieldTrial : public RefCounted<FieldTrial> { // Changes the field trial to use one-time randomization, i.e. produce the // same result for the current trial on every run of this client, with a - // custom randomization seed for the trial. The |randomization_seed| value - // should never be the same for two trials, else this would result in - // correlated group assignments. Must be called right after construction, - // before any groups are added. + // custom randomization seed for the trial (instead of a hash of the trial + // name, which is used otherwise). The |randomization_seed| value should never + // be the same for two trials, else this would result in correlated group + // assignments. Note: Using a custom randomization seed is only supported by + // the PermutedEntropyProvider (which is used when UMA is not enabled). Must + // be called right after construction, before any groups are added. void UseOneTimeRandomizationWithCustomSeed(uint32 randomization_seed); // Disables this trial, meaning it always determines the default group |