OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "android_webview/browser/aw_metrics_service_client.h" | 5 #include "android_webview/browser/aw_metrics_service_client.h" |
6 | 6 |
7 #include "android_webview/common/aw_version_info_values.h" | 7 #include "android_webview/common/aw_version_info_values.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/guid.h" | 10 #include "base/guid.h" |
11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
12 #include "base/prefs/pref_service.h" | |
13 #include "components/metrics/call_stack_profile_metrics_provider.h" | 12 #include "components/metrics/call_stack_profile_metrics_provider.h" |
14 #include "components/metrics/gpu/gpu_metrics_provider.h" | 13 #include "components/metrics/gpu/gpu_metrics_provider.h" |
15 #include "components/metrics/metrics_pref_names.h" | 14 #include "components/metrics/metrics_pref_names.h" |
16 #include "components/metrics/metrics_service.h" | 15 #include "components/metrics/metrics_service.h" |
17 #include "components/metrics/metrics_state_manager.h" | 16 #include "components/metrics/metrics_state_manager.h" |
18 #include "components/metrics/net/net_metrics_log_uploader.h" | 17 #include "components/metrics/net/net_metrics_log_uploader.h" |
19 #include "components/metrics/profiler/profiler_metrics_provider.h" | 18 #include "components/metrics/profiler/profiler_metrics_provider.h" |
20 #include "components/metrics/ui/screen_info_metrics_provider.h" | 19 #include "components/metrics/ui/screen_info_metrics_provider.h" |
21 #include "components/metrics/url_constants.h" | 20 #include "components/metrics/url_constants.h" |
| 21 #include "components/prefs/pref_service.h" |
22 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
23 | 23 |
24 namespace android_webview { | 24 namespace android_webview { |
25 | 25 |
26 base::LazyInstance<AwMetricsServiceClient>::Leaky g_lazy_instance_; | 26 base::LazyInstance<AwMetricsServiceClient>::Leaky g_lazy_instance_; |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 const int kUploadIntervalMinutes = 30; | 30 const int kUploadIntervalMinutes = 30; |
31 | 31 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 request_context_(nullptr) {} | 220 request_context_(nullptr) {} |
221 | 221 |
222 AwMetricsServiceClient::~AwMetricsServiceClient() {} | 222 AwMetricsServiceClient::~AwMetricsServiceClient() {} |
223 | 223 |
224 bool AwMetricsServiceClient::is_reporting_enabled() { | 224 bool AwMetricsServiceClient::is_reporting_enabled() { |
225 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 225 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
226 return is_enabled_; | 226 return is_enabled_; |
227 } | 227 } |
228 | 228 |
229 } // namespace android_webview | 229 } // namespace android_webview |
OLD | NEW |