| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 // sending crash reports. The presence of a Breakpad handler (after | 230 // sending crash reports. The presence of a Breakpad handler (after |
| 231 // attempting to initialize crash reporting) and the presence of a debugger | 231 // attempting to initialize crash reporting) and the presence of a debugger |
| 232 // are registered with the UMA metrics service. | 232 // are registered with the UMA metrics service. |
| 233 void RecordBreakpadStatusUMA(MetricsService* metrics); | 233 void RecordBreakpadStatusUMA(MetricsService* metrics); |
| 234 | 234 |
| 235 // Displays a warning message if some minimum level of OS support is not | 235 // Displays a warning message if some minimum level of OS support is not |
| 236 // present on the current platform. | 236 // present on the current platform. |
| 237 void WarnAboutMinimumSystemRequirements(); | 237 void WarnAboutMinimumSystemRequirements(); |
| 238 | 238 |
| 239 // Records the time from our process' startup to the present time in | 239 // Records the time from our process' startup to the present time in |
| 240 // the UMA histogram |metric_name|. | 240 // the Startup.BrowserMessageLoopStartTime UMA histogram. |
| 241 void RecordBrowserStartupTime(); | 241 void RecordBrowserStartupTime(); |
| 242 | 242 |
| 243 // Records a time value to an UMA histogram in the context of the | 243 // Records a time value to an UMA histogram in the context of the |
| 244 // PreReadExperiment field-trial. This also reports to the appropriate | 244 // PreReadExperiment field-trial. This also reports to the appropriate |
| 245 // sub-histogram (_PreRead(Enabled|Disabled)). | 245 // sub-histogram (_PreRead(Enabled|Disabled)). |
| 246 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 246 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
| 247 | 247 |
| 248 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 248 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| OLD | NEW |