Chromium Code Reviews| Index: components/metrics/metrics_service.cc |
| diff --git a/components/metrics/metrics_service.cc b/components/metrics/metrics_service.cc |
| index 315229b11d1f0e73a6fcf399d4427d64aa47b748..77f79cc5a5d1acaee6b11c91c30f0b87816e73e2 100644 |
| --- a/components/metrics/metrics_service.cc |
| +++ b/components/metrics/metrics_service.cc |
| @@ -886,8 +886,10 @@ void MetricsService::SendNextLog() { |
| !data_use_tracker_->ShouldUploadLogOnCellular( |
| log_manager_.staged_log_hash().size())) { |
| scheduler_->UploadCancelled(); |
| + UMA_HISTOGRAM_BOOLEAN("UMA.LogUpload.Canceled.CellularConstraint", true); |
|
Alexei Svitkine (slow)
2016/04/08 20:07:12
Can we log this only if Cellular upload logic is e
gayane -on leave until 09-2017
2016/04/08 20:40:14
I am not sure I follow. It is the the IF with clie
|
| } else { |
| SendStagedLog(); |
| + UMA_HISTOGRAM_BOOLEAN("UMA.LogUpload.Canceled.CellularConstraint", false); |
|
Alexei Svitkine (slow)
2016/04/08 20:07:12
UMA macros expand to a bunch of code. Please refac
gayane -on leave until 09-2017
2016/04/08 20:40:14
Done.
|
| } |
| } |