summaryrefslogtreecommitdiffstats
path: root/components/variations/variations_seed_processor.cc
diff options
context:
space:
mode:
authorjwd@chromium.org <jwd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-06 16:56:10 +0000
committerjwd@chromium.org <jwd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-06 16:56:10 +0000
commite51dcb0c148a1b0ab0080808d8d1b914d02f6057 (patch)
treec7115680899ff8a3abcbfc36bae634c307de4df1 /components/variations/variations_seed_processor.cc
parent4f4cf03c54845513b80cb4ede1164204f2135156 (diff)
downloadchromium_src-e51dcb0c148a1b0ab0080808d8d1b914d02f6057.zip
chromium_src-e51dcb0c148a1b0ab0080808d8d1b914d02f6057.tar.gz
chromium_src-e51dcb0c148a1b0ab0080808d8d1b914d02f6057.tar.bz2
Adding support for trigger variation ids to variation seed processing.
This is the second change to enable trigger variation ids. This allows Chrome to handle trigger ids that come from the variations service. BUG=359119 Review URL: https://codereview.chromium.org/247143011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268538 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/variations/variations_seed_processor.cc')
-rw-r--r--components/variations/variations_seed_processor.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/variations/variations_seed_processor.cc b/components/variations/variations_seed_processor.cc
index e06474a..e468e4e 100644
--- a/components/variations/variations_seed_processor.cc
+++ b/components/variations/variations_seed_processor.cc
@@ -40,6 +40,14 @@ void RegisterVariationIds(const Study_Experiment& experiment,
experiment.name(),
variation_id);
}
+ if (experiment.has_google_web_trigger_experiment_id()) {
+ const VariationID variation_id =
+ static_cast<VariationID>(experiment.google_web_trigger_experiment_id());
+ AssociateGoogleVariationIDForce(GOOGLE_WEB_PROPERTIES_TRIGGER,
+ trial_name,
+ experiment.name(),
+ variation_id);
+ }
if (experiment.has_google_update_experiment_id()) {
const VariationID variation_id =
static_cast<VariationID>(experiment.google_update_experiment_id());