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

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

Issue 2380043002: Do not register synthetic field trial before initializing TaskScheduler. (Closed)
Patch Set: Created 4 years, 2 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_MAIN_H_ 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 const base::FilePath& user_data_dir() const { 96 const base::FilePath& user_data_dir() const {
97 return user_data_dir_; 97 return user_data_dir_;
98 } 98 }
99 99
100 Profile* profile() { return profile_; } 100 Profile* profile() { return profile_; }
101 101
102 const PrefService* local_state() const { return local_state_; } 102 const PrefService* local_state() const { return local_state_; }
103 103
104 private: 104 private:
105 // Sets up the field trials and related initialization. Call only after 105 // Sets up field trials. When this returns, FieldTrialList and FeatureList
106 // about:flags have been converted to switches. 106 // have been populated with information from the server, the command line,
107 // about:flags and testing configs. Call only after about:flags have been
108 // converted to switches.
107 void SetupFieldTrials(); 109 void SetupFieldTrials();
108 110
109 // Constructs the metrics service and initializes metrics recording. 111 // Constructs the metrics service and initializes metrics recording.
110 void SetupMetrics(); 112 void SetupMetrics();
111 113
112 // Starts recording of metrics. This can only be called after we have a file 114 // Starts recording of metrics. This can only be called after we have a file
113 // thread. 115 // thread.
114 void StartMetricsRecording(); 116 void StartMetricsRecording();
115 117
116 // Record time from process startup to present time in an UMA histogram. 118 // Record time from process startup to present time in an UMA histogram.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 197
196 // Members initialized in PreMainMessageLoopRun, needed in 198 // Members initialized in PreMainMessageLoopRun, needed in
197 // PreMainMessageLoopRunThreadsCreated. 199 // PreMainMessageLoopRunThreadsCreated.
198 PrefService* local_state_; 200 PrefService* local_state_;
199 base::FilePath user_data_dir_; 201 base::FilePath user_data_dir_;
200 202
201 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); 203 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts);
202 }; 204 };
203 205
204 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 206 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main.cc » ('j') | chrome/browser/chrome_browser_main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698