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

Side by Side Diff: chrome/browser/chrome_browser_field_trials.h

Issue 2288853003: Adding local field trial for metrics/crash reports sampling. (Closed)
Patch Set: Adding local field trial for sampling. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_ 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_
6 #define CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_ 6 #define CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
11 namespace base { 11 namespace base {
12 class FeatureList;
12 class Time; 13 class Time;
13 } 14 }
14 15
15 class ChromeBrowserFieldTrials { 16 class ChromeBrowserFieldTrials {
16 public: 17 public:
17 explicit ChromeBrowserFieldTrials(const base::CommandLine& command_line); 18 explicit ChromeBrowserFieldTrials(const base::CommandLine& command_line);
18 ~ChromeBrowserFieldTrials(); 19 ~ChromeBrowserFieldTrials();
19 20
20 void SetupFieldTrials(); 21 void SetupFieldTrials();
21 22
23 // Create field trials that will control feature list features. This should be
24 // called during the same timing window as
25 // FeatureList::AssociateReportingFieldTrial.
26 void SetupFeatureControllingFieldTrials(bool was_a_seed_applied,
Alexei Svitkine (slow) 2016/08/29 19:38:42 Nit: I find |was_a_seed_applied| name kind of awkw
jwd 2016/08/29 21:36:24 Done.
27 base::FeatureList* feature_list);
28
22 private: 29 private:
23 // Instantiates dynamic trials by querying their state, to ensure they get 30 // Instantiates dynamic trials by querying their state, to ensure they get
24 // reported as used. 31 // reported as used.
25 void InstantiateDynamicTrials(); 32 void InstantiateDynamicTrials();
26 33
27 const base::CommandLine& parsed_command_line_; 34 const base::CommandLine& parsed_command_line_;
28 35
29 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserFieldTrials); 36 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserFieldTrials);
30 }; 37 };
31 38
32 #endif // CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_ 39 #endif // CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_field_trials.cc » ('j') | chrome/browser/chrome_browser_field_trials.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698