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 "ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h" | 5 #include "ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
18 #include "base/prefs/pref_registry_simple.h" | |
19 #include "base/prefs/pref_service.h" | |
20 #include "base/process/process_metrics.h" | 18 #include "base/process/process_metrics.h" |
21 #include "base/rand_util.h" | 19 #include "base/rand_util.h" |
22 #include "base/strings/string16.h" | 20 #include "base/strings/string16.h" |
23 #include "base/threading/platform_thread.h" | 21 #include "base/threading/platform_thread.h" |
24 #include "components/crash/core/common/crash_keys.h" | 22 #include "components/crash/core/common/crash_keys.h" |
25 #include "components/metrics/call_stack_profile_metrics_provider.h" | 23 #include "components/metrics/call_stack_profile_metrics_provider.h" |
26 #include "components/metrics/drive_metrics_provider.h" | 24 #include "components/metrics/drive_metrics_provider.h" |
27 #include "components/metrics/metrics_pref_names.h" | 25 #include "components/metrics/metrics_pref_names.h" |
28 #include "components/metrics/metrics_service.h" | 26 #include "components/metrics/metrics_service.h" |
29 #include "components/metrics/net/net_metrics_log_uploader.h" | 27 #include "components/metrics/net/net_metrics_log_uploader.h" |
30 #include "components/metrics/net/network_metrics_provider.h" | 28 #include "components/metrics/net/network_metrics_provider.h" |
31 #include "components/metrics/net/version_utils.h" | 29 #include "components/metrics/net/version_utils.h" |
32 #include "components/metrics/profiler/profiler_metrics_provider.h" | 30 #include "components/metrics/profiler/profiler_metrics_provider.h" |
33 #include "components/metrics/profiler/tracking_synchronizer.h" | 31 #include "components/metrics/profiler/tracking_synchronizer.h" |
34 #include "components/metrics/stability_metrics_helper.h" | 32 #include "components/metrics/stability_metrics_helper.h" |
35 #include "components/metrics/ui/screen_info_metrics_provider.h" | 33 #include "components/metrics/ui/screen_info_metrics_provider.h" |
36 #include "components/metrics/url_constants.h" | 34 #include "components/metrics/url_constants.h" |
37 #include "components/omnibox/browser/omnibox_metrics_provider.h" | 35 #include "components/omnibox/browser/omnibox_metrics_provider.h" |
| 36 #include "components/prefs/pref_registry_simple.h" |
| 37 #include "components/prefs/pref_service.h" |
38 #include "components/signin/core/browser/signin_status_metrics_provider.h" | 38 #include "components/signin/core/browser/signin_status_metrics_provider.h" |
39 #include "components/variations/variations_associated_data.h" | 39 #include "components/variations/variations_associated_data.h" |
40 #include "components/version_info/version_info.h" | 40 #include "components/version_info/version_info.h" |
41 #include "ios/chrome/browser/application_context.h" | 41 #include "ios/chrome/browser/application_context.h" |
42 #include "ios/chrome/browser/chrome_paths.h" | 42 #include "ios/chrome/browser/chrome_paths.h" |
43 #include "ios/chrome/browser/google/google_brand.h" | 43 #include "ios/chrome/browser/google/google_brand.h" |
44 #include "ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider.h" | 44 #include "ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider.h" |
45 #include "ios/chrome/browser/metrics/mobile_session_shutdown_metrics_provider.h" | 45 #include "ios/chrome/browser/metrics/mobile_session_shutdown_metrics_provider.h" |
46 #include "ios/chrome/browser/signin/ios_chrome_signin_status_metrics_provider_de
legate.h" | 46 #include "ios/chrome/browser/signin/ios_chrome_signin_status_metrics_provider_de
legate.h" |
47 #include "ios/chrome/browser/tab_parenting_global_observer.h" | 47 #include "ios/chrome/browser/tab_parenting_global_observer.h" |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 base::Unretained(this))); | 320 base::Unretained(this))); |
321 } | 321 } |
322 | 322 |
323 void IOSChromeMetricsServiceClient::OnTabParented(web::WebState* web_state) { | 323 void IOSChromeMetricsServiceClient::OnTabParented(web::WebState* web_state) { |
324 metrics_service_->OnApplicationNotIdle(); | 324 metrics_service_->OnApplicationNotIdle(); |
325 } | 325 } |
326 | 326 |
327 void IOSChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { | 327 void IOSChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { |
328 metrics_service_->OnApplicationNotIdle(); | 328 metrics_service_->OnApplicationNotIdle(); |
329 } | 329 } |
OLD | NEW |