| 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> |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 metrics::SystemProfileProto::Channel | 117 metrics::SystemProfileProto::Channel |
| 118 IOSChromeMetricsServiceClient::GetChannel() { | 118 IOSChromeMetricsServiceClient::GetChannel() { |
| 119 return metrics::AsProtobufChannel(::GetChannel()); | 119 return metrics::AsProtobufChannel(::GetChannel()); |
| 120 } | 120 } |
| 121 | 121 |
| 122 std::string IOSChromeMetricsServiceClient::GetVersionString() { | 122 std::string IOSChromeMetricsServiceClient::GetVersionString() { |
| 123 return metrics::GetVersionString(); | 123 return metrics::GetVersionString(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 void IOSChromeMetricsServiceClient::OnLogUploadComplete() {} | |
| 127 | |
| 128 void IOSChromeMetricsServiceClient::InitializeSystemProfileMetrics( | 126 void IOSChromeMetricsServiceClient::InitializeSystemProfileMetrics( |
| 129 const base::Closure& done_callback) { | 127 const base::Closure& done_callback) { |
| 130 finished_init_task_callback_ = done_callback; | 128 finished_init_task_callback_ = done_callback; |
| 131 drive_metrics_provider_->GetDriveMetrics( | 129 drive_metrics_provider_->GetDriveMetrics( |
| 132 base::Bind(&IOSChromeMetricsServiceClient::OnInitTaskGotDriveMetrics, | 130 base::Bind(&IOSChromeMetricsServiceClient::OnInitTaskGotDriveMetrics, |
| 133 weak_ptr_factory_.GetWeakPtr())); | 131 weak_ptr_factory_.GetWeakPtr())); |
| 134 } | 132 } |
| 135 | 133 |
| 136 void IOSChromeMetricsServiceClient::CollectFinalMetricsForLog( | 134 void IOSChromeMetricsServiceClient::CollectFinalMetricsForLog( |
| 137 const base::Closure& done_callback) { | 135 const base::Closure& done_callback) { |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 | 315 |
| 318 void IOSChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { | 316 void IOSChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { |
| 319 metrics_service_->OnApplicationNotIdle(); | 317 metrics_service_->OnApplicationNotIdle(); |
| 320 } | 318 } |
| 321 | 319 |
| 322 metrics::EnableMetricsDefault | 320 metrics::EnableMetricsDefault |
| 323 IOSChromeMetricsServiceClient::GetMetricsReportingDefaultState() { | 321 IOSChromeMetricsServiceClient::GetMetricsReportingDefaultState() { |
| 324 return metrics::GetMetricsReportingDefaultState( | 322 return metrics::GetMetricsReportingDefaultState( |
| 325 GetApplicationContext()->GetLocalState()); | 323 GetApplicationContext()->GetLocalState()); |
| 326 } | 324 } |
| OLD | NEW |