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

Unified Diff: chrome/browser/chrome_browser_field_trials.cc

Issue 2307953002: Adding client side field trial for sampling on non-stable channels. (Closed)
Patch Set: Created 4 years, 3 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/chrome_metrics_services_manager_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_field_trials.cc
diff --git a/chrome/browser/chrome_browser_field_trials.cc b/chrome/browser/chrome_browser_field_trials.cc
index c6919e6fb6bd8939d0b3b356e4df2252d43f53e0..7c5fcea6a8d43dcd9643ff0aa416ac37c8671fcb 100644
--- a/chrome/browser/chrome_browser_field_trials.cc
+++ b/chrome/browser/chrome_browser_field_trials.cc
@@ -25,7 +25,6 @@
#include "chrome/common/chrome_switches.h"
#include "components/metrics/metrics_pref_names.h"
#include "components/variations/variations_associated_data.h"
-#include "components/version_info/version_info.h"
#if defined(OS_ANDROID)
#include "chrome/browser/chrome_browser_field_trials_mobile.h"
@@ -127,11 +126,8 @@ void CreateFallbackSamplingTrialIfNeeded(bool has_seed,
if (has_seed)
return;
- // Sampling is only supported on Stable.
- if (chrome::GetChannel() != version_info::Channel::STABLE)
- return;
-
- ChromeMetricsServicesManagerClient::CreateFallbackSamplingTrial(feature_list);
+ ChromeMetricsServicesManagerClient::CreateFallbackSamplingTrial(
+ chrome::GetChannel(), feature_list);
#endif // defined(OS_WIN) || defined(OS_ANDROID)
}
« no previous file with comments | « no previous file | chrome/browser/metrics/chrome_metrics_services_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698