Index: components/variations/processed_study.h |
diff --git a/components/variations/processed_study.h b/components/variations/processed_study.h |
index cdc1c7636823859ef53d35e49f9f5bccaddb4490..24845bf03889611f31f45c45898b135ed6ea4bd8 100644 |
--- a/components/variations/processed_study.h |
+++ b/components/variations/processed_study.h |
@@ -5,6 +5,7 @@ |
#ifndef COMPONENTS_VARIATIONS_PROCESSED_STUDY_H_ |
#define COMPONENTS_VARIATIONS_PROCESSED_STUDY_H_ |
+#include <string> |
#include <vector> |
#include "base/metrics/field_trial.h" |
@@ -30,6 +31,10 @@ class ProcessedStudy { |
bool is_expired() const { return is_expired_; } |
+ // Gets the index of the experiment with the given |name|. Returns -1 if no |
+ // experiment is found. |
+ int GetExperimentIndexByName(const std::string& name) const; |
+ |
static bool ValidateAndAppendStudy( |
const Study* study, |
bool is_expired, |