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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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 FeatureList;
13 class Time;
14 } 13 }
15 14
16 class ChromeBrowserFieldTrials { 15 class ChromeBrowserFieldTrials {
17 public: 16 public:
18 explicit ChromeBrowserFieldTrials(const base::CommandLine& command_line); 17 explicit ChromeBrowserFieldTrials(const base::CommandLine& command_line);
19 ~ChromeBrowserFieldTrials(); 18 ~ChromeBrowserFieldTrials();
20 19
21 void SetupFieldTrials(); 20 void SetupFieldTrials();
22 21
23 // Create field trials that will control feature list features. This should be 22 // Create field trials that will control feature list features. This should be
24 // called during the same timing window as 23 // called during the same timing window as
25 // FeatureList::AssociateReportingFieldTrial. |has_seed| indicates that the 24 // FeatureList::AssociateReportingFieldTrial. |has_seed| indicates that the
26 // variations service used a seed to create field trials. This can be used to 25 // variations service used a seed to create field trials. This can be used to
27 // prevent associating a field trial with a feature that you expect to be 26 // prevent associating a field trial with a feature that you expect to be
28 // controlled by the variations seed. 27 // controlled by the variations seed.
29 void SetupFeatureControllingFieldTrials(bool has_seed, 28 void SetupFeatureControllingFieldTrials(bool has_seed,
30 base::FeatureList* feature_list); 29 base::FeatureList* feature_list);
31 30
32 private: 31 private:
33 // Instantiates dynamic trials by querying their state, to ensure they get 32 // Instantiates dynamic trials by querying their state, to ensure they get
34 // reported as used. 33 // reported as used.
35 void InstantiateDynamicTrials(); 34 void InstantiateDynamicTrials();
36 35
37 const base::CommandLine& parsed_command_line_; 36 const base::CommandLine& parsed_command_line_;
38 37
39 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserFieldTrials); 38 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserFieldTrials);
40 }; 39 };
41 40
42 #endif // CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_ 41 #endif // CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_
OLDNEW
« no previous file with comments | « chrome/browser/captive_portal/captive_portal_tab_helper.h ('k') | chrome/browser/chrome_browser_field_trials_mobile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698