• Alexei Svitkine's avatar
    Introduce an allowlist for external experiment ids. · dd6dc052
    Alexei Svitkine authored
    The allowlist provides a way to specify which external experiment
    ids can be sent and also provides a way to associate a study name
    for such external experiment ids.
    
    Since the API now uses an allowlist, its use is no longer restricted
    via metrics service accessor, which allows us to simplify the plumbing.
    
    A metrics client API is provided to disable the allowlist, which is
    needed for some configurations such as WebLayer.
    
    Additionally, the new allowlist support is implemented behind a
    base::Feature, which is off by default in this CL. When the
    feature is disabled, the behavior from before is unchanged.
    
    Bug: 1111941
    Change-Id: I63b92254e27a32dd5236c37f0b70fb3683f447e4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2324172
    Commit-Queue: Alexei Svitkine <asvitkine@chromium.org>
    Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Reviewed-by: default avatarPeter Conn <peconn@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#795502}
    dd6dc052
synthetic_trial_registry.cc 6 KB