diff options
Diffstat (limited to 'components/variations/variations_associated_data.h')
-rw-r--r-- | components/variations/variations_associated_data.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/components/variations/variations_associated_data.h b/components/variations/variations_associated_data.h index 8bacae1..3fe70f8 100644 --- a/components/variations/variations_associated_data.h +++ b/components/variations/variations_associated_data.h @@ -82,6 +82,11 @@ void AssociateGoogleVariationIDForce(IDCollectionKey key, const std::string& group_name, VariationID id); +// As above, but takes an ActiveGroupId hash pair, rather than the string names. +void AssociateGoogleVariationIDForceHashes(IDCollectionKey key, + const ActiveGroupId& active_group, + VariationID id); + // Retrieve the variations::VariationID associated with a FieldTrial group for // collection |key|. The group is denoted by |trial_name| and |group_name|. // This will return variations::kEmptyID if there is currently no associated ID @@ -92,6 +97,11 @@ VariationID GetGoogleVariationID(IDCollectionKey key, const std::string& trial_name, const std::string& group_name); +// Same as GetGoogleVariationID(), but takes in a hashed |active_group| rather +// than the string trial and group name. +VariationID GetGoogleVariationIDFromHashes(IDCollectionKey key, + const ActiveGroupId& active_group); + // Associates the specified set of key-value |params| with the variation // specified by |trial_name| and |group_name|. Fails and returns false if the // specified variation already has params associated with it or the field trial |