| 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 //------------------------------------------------------------------------------ | 5 //------------------------------------------------------------------------------ |
| 6 // Description of the life cycle of a instance of MetricsService. | 6 // Description of the life cycle of a instance of MetricsService. |
| 7 // | 7 // |
| 8 // OVERVIEW | 8 // OVERVIEW |
| 9 // | 9 // |
| 10 // A MetricsService instance is typically created at application startup. It is | 10 // A MetricsService instance is typically created at application startup. It is |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 #include "chrome/browser/metrics/metrics_log.h" | 189 #include "chrome/browser/metrics/metrics_log.h" |
| 190 #include "chrome/browser/metrics/metrics_log_serializer.h" | 190 #include "chrome/browser/metrics/metrics_log_serializer.h" |
| 191 #include "chrome/browser/metrics/metrics_reporting_scheduler.h" | 191 #include "chrome/browser/metrics/metrics_reporting_scheduler.h" |
| 192 #include "chrome/browser/metrics/metrics_state_manager.h" | 192 #include "chrome/browser/metrics/metrics_state_manager.h" |
| 193 #include "chrome/browser/metrics/time_ticks_experiment_win.h" | 193 #include "chrome/browser/metrics/time_ticks_experiment_win.h" |
| 194 #include "chrome/browser/metrics/tracking_synchronizer.h" | 194 #include "chrome/browser/metrics/tracking_synchronizer.h" |
| 195 #include "chrome/common/metrics/variations/variations_util.h" | 195 #include "chrome/common/metrics/variations/variations_util.h" |
| 196 #include "chrome/browser/net/http_pipelining_compatibility_client.h" | 196 #include "chrome/browser/net/http_pipelining_compatibility_client.h" |
| 197 #include "chrome/browser/net/network_stats.h" | 197 #include "chrome/browser/net/network_stats.h" |
| 198 #include "chrome/browser/omnibox/omnibox_log.h" | 198 #include "chrome/browser/omnibox/omnibox_log.h" |
| 199 #include "chrome/browser/ui/browser_list.h" | |
| 200 #include "chrome/browser/ui/browser_otr_state.h" | 199 #include "chrome/browser/ui/browser_otr_state.h" |
| 201 #include "chrome/browser/ui/search/search_tab_helper.h" | |
| 202 #include "chrome/common/chrome_constants.h" | 200 #include "chrome/common/chrome_constants.h" |
| 203 #include "chrome/common/chrome_result_codes.h" | |
| 204 #include "chrome/common/chrome_switches.h" | 201 #include "chrome/common/chrome_switches.h" |
| 205 #include "chrome/common/crash_keys.h" | 202 #include "chrome/common/crash_keys.h" |
| 206 #include "chrome/common/net/test_server_locations.h" | 203 #include "chrome/common/net/test_server_locations.h" |
| 207 #include "chrome/common/pref_names.h" | 204 #include "chrome/common/pref_names.h" |
| 208 #include "chrome/common/render_messages.h" | 205 #include "chrome/common/render_messages.h" |
| 209 #include "components/metrics/metrics_log_manager.h" | 206 #include "components/metrics/metrics_log_manager.h" |
| 210 #include "components/variations/entropy_provider.h" | 207 #include "components/variations/entropy_provider.h" |
| 211 #include "components/variations/metrics_util.h" | 208 #include "components/variations/metrics_util.h" |
| 212 #include "content/public/browser/child_process_data.h" | 209 #include "content/public/browser/child_process_data.h" |
| 213 #include "content/public/browser/histogram_fetcher.h" | 210 #include "content/public/browser/histogram_fetcher.h" |
| (...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1930 // Android has its own settings for metrics / crash uploading. | 1927 // Android has its own settings for metrics / crash uploading. |
| 1931 const PrefService* prefs = g_browser_process->local_state(); | 1928 const PrefService* prefs = g_browser_process->local_state(); |
| 1932 return prefs->GetBoolean(prefs::kCrashReportingEnabled); | 1929 return prefs->GetBoolean(prefs::kCrashReportingEnabled); |
| 1933 #else | 1930 #else |
| 1934 return MetricsServiceHelper::IsMetricsReportingEnabled(); | 1931 return MetricsServiceHelper::IsMetricsReportingEnabled(); |
| 1935 #endif | 1932 #endif |
| 1936 #else | 1933 #else |
| 1937 return false; | 1934 return false; |
| 1938 #endif | 1935 #endif |
| 1939 } | 1936 } |
| OLD | NEW |