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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 // Records the conditions that can prevent Breakpad from generating and | 207 // Records the conditions that can prevent Breakpad from generating and |
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 // Record time from process startup to present time in an UMA histogram. |
218 // the Startup.BrowserMessageLoopStartTime UMA histogram. | 218 // |is_first_run| - is the current launch part of a first run. |
219 void RecordBrowserStartupTime(); | 219 void RecordBrowserStartupTime(bool is_first_run); |
220 | 220 |
221 // Records a time value to an UMA histogram in the context of the | 221 // Records a time value to an UMA histogram in the context of the |
222 // PreReadExperiment field-trial. This also reports to the appropriate | 222 // PreReadExperiment field-trial. This also reports to the appropriate |
223 // sub-histogram (_PreRead(Enabled|Disabled)). | 223 // sub-histogram (_PreRead(Enabled|Disabled)). |
224 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 224 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
225 | 225 |
226 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 226 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
OLD | NEW |