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

Unified Diff: chrome/common/variations/uniformity_field_trials.cc

Issue 533703002: Remove variation_ids.h file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/common/variations/variation_ids.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/variations/uniformity_field_trials.cc
diff --git a/chrome/common/variations/uniformity_field_trials.cc b/chrome/common/variations/uniformity_field_trials.cc
index c67d0bb6d87e6be6aa7a1e661efed97c8059a04b..8202d135770023b59f658526c12e1677bfbc3ea0 100644
--- a/chrome/common/variations/uniformity_field_trials.cc
+++ b/chrome/common/variations/uniformity_field_trials.cc
@@ -9,13 +9,27 @@
#include "base/metrics/field_trial.h"
#include "base/strings/stringprintf.h"
#include "base/time/time.h"
-#include "chrome/common/variations/variation_ids.h"
#include "components/variations/variations_associated_data.h"
namespace chrome_variations {
namespace {
+const int MINIMIUM_ID = 3300000;
+
+const int UNIFORMITY_1_PERCENT_BASE = MINIMIUM_ID;
+const int UNIFORMITY_1_PERCENT_LIMIT = UNIFORMITY_1_PERCENT_BASE + 100;
+const int UNIFORMITY_5_PERCENT_BASE = UNIFORMITY_1_PERCENT_LIMIT;
+const int UNIFORMITY_5_PERCENT_LIMIT = UNIFORMITY_5_PERCENT_BASE + 20;
+const int UNIFORMITY_10_PERCENT_BASE = UNIFORMITY_5_PERCENT_LIMIT;
+const int UNIFORMITY_10_PERCENT_LIMIT = UNIFORMITY_10_PERCENT_BASE + 10;
+const int UNIFORMITY_20_PERCENT_BASE = UNIFORMITY_10_PERCENT_LIMIT;
+const int UNIFORMITY_20_PERCENT_LIMIT = UNIFORMITY_20_PERCENT_BASE + 5;
+const int UNIFORMITY_50_PERCENT_BASE = UNIFORMITY_20_PERCENT_LIMIT;
+// A uniformity trial used to compare one-time-randomized and
+// session-randomized FieldTrials.
+const int UNIFORMITY_SESSION_RANDOMIZED_5_PERCENT_BASE = 3300139;
+
// Set up a uniformity field trial. |one_time_randomized| indicates if the
// field trial is one-time randomized or session-randomized. |trial_name_string|
// must contain a "%d" since the percentage of the group will be inserted in
« no previous file with comments | « no previous file | chrome/common/variations/variation_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698