OLD | NEW |
---|---|
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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
208 // sending crash reports. The presence of a Breakpad handler (after | 208 // sending crash reports. The presence of a Breakpad handler (after |
209 // attempting to initialize crash reporting) and the presence of a debugger | 209 // attempting to initialize crash reporting) and the presence of a debugger |
210 // are registered with the UMA metrics service. | 210 // are registered with the UMA metrics service. |
211 void RecordBreakpadStatusUMA(MetricsService* metrics); | 211 void RecordBreakpadStatusUMA(MetricsService* metrics); |
212 | 212 |
213 // Displays a warning message if some minimum level of OS support is not | 213 // Displays a warning message if some minimum level of OS support is not |
214 // present on the current platform. | 214 // present on the current platform. |
215 void WarnAboutMinimumSystemRequirements(); | 215 void WarnAboutMinimumSystemRequirements(); |
216 | 216 |
217 // Records the time from our process' startup to the present time in | 217 // Records the time from our process' startup to the present time in |
218 // the Startup.BrowserMessageLoopStartTime UMA histogram. | 218 // the Startup.BrowserMessageLoopStartTime UMA histogram (records |
219 void RecordBrowserStartupTime(); | 219 // Startup.FirstRun.BrowserMessageLoopStartTime instead if |is_first_run|). |
jeremy
2013/05/05 12:35:56
2 histogram names seems confusing here, how about
gab
2013/05/06 16:19:54
Done.
| |
220 void RecordBrowserStartupTime(bool is_first_run); | |
220 | 221 |
221 // Records a time value to an UMA histogram in the context of the | 222 // Records a time value to an UMA histogram in the context of the |
222 // PreReadExperiment field-trial. This also reports to the appropriate | 223 // PreReadExperiment field-trial. This also reports to the appropriate |
223 // sub-histogram (_PreRead(Enabled|Disabled)). | 224 // sub-histogram (_PreRead(Enabled|Disabled)). |
224 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 225 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
225 | 226 |
226 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 227 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
OLD | NEW |