| 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_BROWSER_MAIN_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_MAIN_H_ |
| 6 #define CHROME_BROWSER_BROWSER_MAIN_H_ | 6 #define CHROME_BROWSER_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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 140 |
| 141 void InitializeMainThread(); | 141 void InitializeMainThread(); |
| 142 | 142 |
| 143 // Methods for |SetupMetricsAndFieldTrials()| -------------------------------- | 143 // Methods for |SetupMetricsAndFieldTrials()| -------------------------------- |
| 144 | 144 |
| 145 static MetricsService* InitializeMetrics( | 145 static MetricsService* InitializeMetrics( |
| 146 const CommandLine& parsed_command_line, | 146 const CommandLine& parsed_command_line, |
| 147 const PrefService* local_state); | 147 const PrefService* local_state); |
| 148 | 148 |
| 149 // Add an invocation of your field trial init function to this method. | 149 // Add an invocation of your field trial init function to this method. |
| 150 void SetupFieldTrials(bool metrics_recording_enabled); | 150 void SetupFieldTrials(bool metrics_recording_enabled, |
| 151 bool proxy_policy_is_set); |
| 151 | 152 |
| 152 // Members initialized on construction --------------------------------------- | 153 // Members initialized on construction --------------------------------------- |
| 153 | 154 |
| 154 const MainFunctionParams& parameters_; | 155 const MainFunctionParams& parameters_; |
| 155 const CommandLine& parsed_command_line_; | 156 const CommandLine& parsed_command_line_; |
| 156 | 157 |
| 157 #if defined(TRACK_ALL_TASK_OBJECTS) | 158 #if defined(TRACK_ALL_TASK_OBJECTS) |
| 158 // Creating this object starts tracking the creation and deletion of Task | 159 // Creating this object starts tracking the creation and deletion of Task |
| 159 // instance. This MUST be done before main_message_loop, so that it is | 160 // instance. This MUST be done before main_message_loop, so that it is |
| 160 // destroyed after the main_message_loop. | 161 // destroyed after the main_message_loop. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 195 |
| 195 // Displays a warning message if some minimum level of OS support is not | 196 // Displays a warning message if some minimum level of OS support is not |
| 196 // present on the current platform. | 197 // present on the current platform. |
| 197 void WarnAboutMinimumSystemRequirements(); | 198 void WarnAboutMinimumSystemRequirements(); |
| 198 | 199 |
| 199 // Records the time from our process' startup to the present time in | 200 // Records the time from our process' startup to the present time in |
| 200 // the UMA histogram |metric_name|. | 201 // the UMA histogram |metric_name|. |
| 201 void RecordBrowserStartupTime(); | 202 void RecordBrowserStartupTime(); |
| 202 | 203 |
| 203 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ | 204 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ |
| OLD | NEW |