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

Unified Diff: chrome/browser/metrics/variations/variations_service.h

Issue 11737025: Add a switch for faking channels for Variations filtering. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 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
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/variations_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/variations/variations_service.h
diff --git a/chrome/browser/metrics/variations/variations_service.h b/chrome/browser/metrics/variations/variations_service.h
index 380bd8eb31be91cb5a3a12216410f6d3706d6a83..389f34cca11678f01ac2f958e02a0d28cbc3fdd5 100644
--- a/chrome/browser/metrics/variations/variations_service.h
+++ b/chrome/browser/metrics/variations/variations_service.h
@@ -99,11 +99,13 @@ class VariationsService
PrefService* local_prefs);
// Returns whether |study| should be disabled according to its restriction
- // parameters. Uses |version_info| for min / max version checks and
- // |reference_date| for the start date check.
+ // parameters. Uses |version_info| for min / max version checks,
+ // |reference_date| for the start date check and |channel| for channel
+ // checks.
static bool ShouldAddStudy(const Study& study,
const chrome::VersionInfo& version_info,
- const base::Time& reference_date);
+ const base::Time& reference_date,
+ chrome::VersionInfo::Channel channel);
// Checks whether a study is applicable for the given |channel| per |filter|.
static bool CheckStudyChannel(const Study_Filter& filter,
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/variations_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698