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

Unified Diff: components/variations/processed_study.h

Issue 370463003: Add support for variations controlled overriding UI strings to the variations service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « chrome/chrome_tests_unit.gypi ('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 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,
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | components/variations/processed_study.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698