| Index: components/variations/variations_associated_data.cc
|
| diff --git a/components/variations/variations_associated_data.cc b/components/variations/variations_associated_data.cc
|
| index 6ef2343a74a2698abe5a53f007e8345d5d877069..857ded57d5e3bf95fa48e4130ef52eac04e58781 100644
|
| --- a/components/variations/variations_associated_data.cc
|
| +++ b/components/variations/variations_associated_data.cc
|
| @@ -184,17 +184,29 @@ void AssociateGoogleVariationIDForce(IDCollectionKey key,
|
| const std::string& trial_name,
|
| const std::string& group_name,
|
| VariationID id) {
|
| - GroupMapAccessor::GetInstance()->AssociateID(
|
| - key, MakeActiveGroupId(trial_name, group_name), id, true);
|
| + AssociateGoogleVariationIDForceHashes(
|
| + key, MakeActiveGroupId(trial_name, group_name), id);
|
| +}
|
| +
|
| +void AssociateGoogleVariationIDForceHashes(IDCollectionKey key,
|
| + const ActiveGroupId& active_group,
|
| + VariationID id) {
|
| + GroupMapAccessor::GetInstance()->AssociateID(key, active_group, id, true);
|
| }
|
|
|
| VariationID GetGoogleVariationID(IDCollectionKey key,
|
| const std::string& trial_name,
|
| const std::string& group_name) {
|
| - return GroupMapAccessor::GetInstance()->GetID(
|
| + return GetGoogleVariationIDFromHashes(
|
| key, MakeActiveGroupId(trial_name, group_name));
|
| }
|
|
|
| +VariationID GetGoogleVariationIDFromHashes(
|
| + IDCollectionKey key,
|
| + const ActiveGroupId& active_group) {
|
| + return GroupMapAccessor::GetInstance()->GetID(key, active_group);
|
| +}
|
| +
|
| bool AssociateVariationParams(
|
| const std::string& trial_name,
|
| const std::string& group_name,
|
|
|