Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(817)

Unified Diff: components/variations/processed_study.h

Issue 1809633003: Allow trials to associate without overriding a feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a comment. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/feature_list_unittest.cc ('k') | components/variations/processed_study.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/variations/processed_study.h
diff --git a/components/variations/processed_study.h b/components/variations/processed_study.h
index c9650fd20371732fde380917e0a2544701d142b0..0607d064a9f307907dac756c8e9e7067447cc40d 100644
--- a/components/variations/processed_study.h
+++ b/components/variations/processed_study.h
@@ -35,6 +35,10 @@ class ProcessedStudy {
bool is_expired() const { return is_expired_; }
+ const std::string& single_feature_name() const {
+ return single_feature_name_;
+ }
+
// Gets the index of the experiment with the given |name|. Returns -1 if no
// experiment is found.
int GetExperimentIndexByName(const std::string& name) const;
@@ -56,6 +60,10 @@ class ProcessedStudy {
// Whether the study is expired.
bool is_expired_;
+
+ // If the study has groups that enable/disable a single feature, the name of
+ // that feature.
+ std::string single_feature_name_;
};
} // namespace variations
« no previous file with comments | « base/feature_list_unittest.cc ('k') | components/variations/processed_study.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698