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

Unified Diff: components/variations/study_filtering.h

Issue 2614443002: Supporting study definitions without default groups and end_date filtering. (Closed)
Patch Set: rkaplow's comments Created 3 years, 11 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
Index: components/variations/study_filtering.h
diff --git a/components/variations/study_filtering.h b/components/variations/study_filtering.h
index 030d91918c3294e7d3e402ce1c00d74dba6d36d0..9917ec7e82826b86cb0240593e64bda3a8bd9297 100644
--- a/components/variations/study_filtering.h
+++ b/components/variations/study_filtering.h
@@ -43,6 +43,9 @@ bool CheckStudyPlatform(const Study_Filter& filter, Study_Platform platform);
bool CheckStudyStartDate(const Study_Filter& filter,
const base::Time& date_time);
+// Checks whether a study is applicable for the given date/time per |filter|.
+bool CheckStudyEndDate(const Study_Filter& filter, const base::Time& date_time);
+
// Checks whether a study is applicable for the given version per |filter|.
bool CheckStudyVersion(const Study_Filter& filter,
const base::Version& version);

Powered by Google App Engine
This is Rietveld 408576698