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

Side by Side Diff: chrome/common/variations/uniformity_field_trials.cc

Issue 382313003: Add data reduction functionality to all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add all platforms to data reduction field trial. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/variations/uniformity_field_trials.h" 5 #include "chrome/common/variations/uniformity_field_trials.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "chrome/common/chrome_version_info.h"
bengr 2014/07/17 00:11:08 Why is this needed?
Not at Google. Contact bengr 2014/07/17 18:10:21 Done.
12 #include "chrome/common/variations/variation_ids.h" 13 #include "chrome/common/variations/variation_ids.h"
13 #include "components/variations/variations_associated_data.h" 14 #include "components/variations/variations_associated_data.h"
14 15
15 namespace chrome_variations { 16 namespace chrome_variations {
16 17
17 namespace { 18 namespace {
18 19
19 // Set up a uniformity field trial. |one_time_randomized| indicates if the 20 // Set up a uniformity field trial. |one_time_randomized| indicates if the
20 // field trial is one-time randomized or session-randomized. |trial_name_string| 21 // field trial is one-time randomized or session-randomized. |trial_name_string|
21 // must contain a "%d" since the percentage of the group will be inserted in 22 // must contain a "%d" since the percentage of the group will be inserted in
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 const std::string kSessionRandomizedTrialName = 125 const std::string kSessionRandomizedTrialName =
125 "UMA-Session-Randomized-Uniformity-Trial-%d-Percent"; 126 "UMA-Session-Randomized-Uniformity-Trial-%d-Percent";
126 SetupSingleUniformityFieldTrial( 127 SetupSingleUniformityFieldTrial(
127 base::FieldTrial::SESSION_RANDOMIZED, kSessionRandomizedTrialName, 128 base::FieldTrial::SESSION_RANDOMIZED, kSessionRandomizedTrialName,
128 UNIFORMITY_SESSION_RANDOMIZED_5_PERCENT_BASE, 20); 129 UNIFORMITY_SESSION_RANDOMIZED_5_PERCENT_BASE, 20);
129 130
130 SetupNewInstallUniformityTrial(install_date); 131 SetupNewInstallUniformityTrial(install_date);
131 } 132 }
132 133
133 } // namespace chrome_variations 134 } // namespace chrome_variations
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698