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

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

Issue 396753005: Keep all references to kInstallDate inside components/metrics/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_field_trials.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 10
11 class PrefService; 11 class PrefService;
12 12
13 namespace base {
14 class Time;
15 }
16
13 class ChromeBrowserFieldTrials { 17 class ChromeBrowserFieldTrials {
14 public: 18 public:
15 explicit ChromeBrowserFieldTrials(const base::CommandLine& command_line); 19 explicit ChromeBrowserFieldTrials(const base::CommandLine& command_line);
16 ~ChromeBrowserFieldTrials(); 20 ~ChromeBrowserFieldTrials();
17 21
18 // Called by the browser main sequence to set up Field Trials for this client. 22 // Called by the browser main sequence to set up Field Trials for this client.
19 // |local_state| is used to extract properties like install time. 23 // |local_state| is used to set browser-wide properties.
20 void SetupFieldTrials(PrefService* local_state); 24 void SetupFieldTrials(const base::Time& install_time,
25 PrefService* local_state);
21 26
22 private: 27 private:
23 // Instantiates dynamic trials by querying their state, to ensure they get 28 // Instantiates dynamic trials by querying their state, to ensure they get
24 // reported as used. 29 // reported as used.
25 void InstantiateDynamicTrials(); 30 void InstantiateDynamicTrials();
26 31
27 const base::CommandLine& parsed_command_line_; 32 const base::CommandLine& parsed_command_line_;
28 33
29 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserFieldTrials); 34 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserFieldTrials);
30 }; 35 };
31 36
32 #endif // CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_ 37 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698