| 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 "google_apis/gcm/engine/instance_id_get_token_request_handler.h" | 5 #include "google_apis/gcm/engine/instance_id_get_token_request_handler.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram_macros.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "google_apis/gcm/base/gcm_util.h" | 9 #include "google_apis/gcm/base/gcm_util.h" |
| 10 #include "net/url_request/url_request_context_getter.h" | 10 #include "net/url_request/url_request_context_getter.h" |
| 11 | 11 |
| 12 namespace gcm { | 12 namespace gcm { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 // Request constants. | 16 // Request constants. |
| 17 const char kAuthorizedEntityKey[] = "sender"; | 17 const char kAuthorizedEntityKey[] = "sender"; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // Other UMAs are only reported when the request succeeds. | 63 // Other UMAs are only reported when the request succeeds. |
| 64 if (status != RegistrationRequest::SUCCESS) | 64 if (status != RegistrationRequest::SUCCESS) |
| 65 return; | 65 return; |
| 66 | 66 |
| 67 UMA_HISTOGRAM_COUNTS("InstanceID.GetToken.RetryCount", retry_count); | 67 UMA_HISTOGRAM_COUNTS("InstanceID.GetToken.RetryCount", retry_count); |
| 68 UMA_HISTOGRAM_TIMES("InstanceID.GetToken.CompleteTime", complete_time); | 68 UMA_HISTOGRAM_TIMES("InstanceID.GetToken.CompleteTime", complete_time); |
| 69 } | 69 } |
| 70 | 70 |
| 71 } // namespace gcm | 71 } // namespace gcm |
| OLD | NEW |