| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void ConnectBackupJobsFieldTrial(); | 105 void ConnectBackupJobsFieldTrial(); |
| 106 | 106 |
| 107 // Field trial to see what disabling DNS pre-resolution does to | 107 // Field trial to see what disabling DNS pre-resolution does to |
| 108 // latency of page loads. | 108 // latency of page loads. |
| 109 void PredictorFieldTrial(); | 109 void PredictorFieldTrial(); |
| 110 | 110 |
| 111 // Field trial to see what effect installing defaults in the NTP apps pane | 111 // Field trial to see what effect installing defaults in the NTP apps pane |
| 112 // has on retention and general apps/webstore usage. | 112 // has on retention and general apps/webstore usage. |
| 113 void DefaultAppsFieldTrial(); | 113 void DefaultAppsFieldTrial(); |
| 114 | 114 |
| 115 // A field trial to see what effects launching Chrome automatically on |
| 116 // computer startup has on retention and usage of Chrome. |
| 117 void AutoLaunchChromeFieldTrial(); |
| 118 |
| 115 // Methods for |SetupMetricsAndFieldTrials()| -------------------------------- | 119 // Methods for |SetupMetricsAndFieldTrials()| -------------------------------- |
| 116 | 120 |
| 117 // Constructs metrics service and does related initialization, including | 121 // Constructs metrics service and does related initialization, including |
| 118 // creation of field trials. Call only after labs have been converted to | 122 // creation of field trials. Call only after labs have been converted to |
| 119 // switches. | 123 // switches. |
| 120 MetricsService* SetupMetricsAndFieldTrials(PrefService* local_state); | 124 MetricsService* SetupMetricsAndFieldTrials(PrefService* local_state); |
| 121 | 125 |
| 122 static MetricsService* InitializeMetrics( | 126 static MetricsService* InitializeMetrics( |
| 123 const CommandLine& parsed_command_line, | 127 const CommandLine& parsed_command_line, |
| 124 const PrefService* local_state); | 128 const PrefService* local_state); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // Records the time from our process' startup to the present time in | 209 // Records the time from our process' startup to the present time in |
| 206 // the UMA histogram |metric_name|. | 210 // the UMA histogram |metric_name|. |
| 207 void RecordBrowserStartupTime(); | 211 void RecordBrowserStartupTime(); |
| 208 | 212 |
| 209 // Records a time value to an UMA histogram in the context of the | 213 // Records a time value to an UMA histogram in the context of the |
| 210 // PreReadExperiment field-trial. This also reports to the appropriate | 214 // PreReadExperiment field-trial. This also reports to the appropriate |
| 211 // sub-histogram (_PreRead(Enabled|Disabled)). | 215 // sub-histogram (_PreRead(Enabled|Disabled)). |
| 212 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 216 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
| 213 | 217 |
| 214 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 218 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| OLD | NEW |