OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/metrics/chrome_metrics_service_client.h" | 5 #include "chrome/browser/metrics/chrome_metrics_service_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 | 558 |
559 #if !defined(OS_CHROMEOS) | 559 #if !defined(OS_CHROMEOS) |
560 metrics_service_->RegisterMetricsProvider( | 560 metrics_service_->RegisterMetricsProvider( |
561 std::unique_ptr<metrics::MetricsProvider>( | 561 std::unique_ptr<metrics::MetricsProvider>( |
562 SigninStatusMetricsProvider::CreateInstance(base::WrapUnique( | 562 SigninStatusMetricsProvider::CreateInstance(base::WrapUnique( |
563 new ChromeSigninStatusMetricsProviderDelegate)))); | 563 new ChromeSigninStatusMetricsProviderDelegate)))); |
564 #endif // !defined(OS_CHROMEOS) | 564 #endif // !defined(OS_CHROMEOS) |
565 | 565 |
566 metrics_service_->RegisterMetricsProvider( | 566 metrics_service_->RegisterMetricsProvider( |
567 std::unique_ptr<metrics::MetricsProvider>( | 567 std::unique_ptr<metrics::MetricsProvider>( |
568 new sync_driver::DeviceCountMetricsProvider(base::Bind( | 568 new syncer::DeviceCountMetricsProvider(base::Bind( |
569 &browser_sync::ChromeSyncClient::GetDeviceInfoTrackers)))); | 569 &browser_sync::ChromeSyncClient::GetDeviceInfoTrackers)))); |
570 | 570 |
571 metrics_service_->RegisterMetricsProvider( | 571 metrics_service_->RegisterMetricsProvider( |
572 std::unique_ptr<metrics::MetricsProvider>( | 572 std::unique_ptr<metrics::MetricsProvider>( |
573 new HttpsEngagementMetricsProvider())); | 573 new HttpsEngagementMetricsProvider())); |
574 } | 574 } |
575 | 575 |
576 void ChromeMetricsServiceClient::OnInitTaskGotHardwareClass() { | 576 void ChromeMetricsServiceClient::OnInitTaskGotHardwareClass() { |
577 const base::Closure got_bluetooth_adapter_callback = | 577 const base::Closure got_bluetooth_adapter_callback = |
578 base::Bind(&ChromeMetricsServiceClient::OnInitTaskGotBluetoothAdapter, | 578 base::Bind(&ChromeMetricsServiceClient::OnInitTaskGotBluetoothAdapter, |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 } | 832 } |
833 } | 833 } |
834 | 834 |
835 void ChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { | 835 void ChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { |
836 metrics_service_->OnApplicationNotIdle(); | 836 metrics_service_->OnApplicationNotIdle(); |
837 } | 837 } |
838 | 838 |
839 bool ChromeMetricsServiceClient::IsUMACellularUploadLogicEnabled() { | 839 bool ChromeMetricsServiceClient::IsUMACellularUploadLogicEnabled() { |
840 return metrics::IsCellularLogicEnabled(); | 840 return metrics::IsCellularLogicEnabled(); |
841 } | 841 } |
OLD | NEW |