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 "google_apis/gcm/engine/gcm_unregistration_request_handler.h" | 5 #include "google_apis/gcm/engine/gcm_unregistration_request_handler.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
8 #include "google_apis/gcm/base/gcm_util.h" | 9 #include "google_apis/gcm/base/gcm_util.h" |
9 #include "net/url_request/url_fetcher.h" | 10 #include "net/url_request/url_fetcher.h" |
10 | 11 |
11 namespace gcm { | 12 namespace gcm { |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 // Request constants. | 16 // Request constants. |
16 const char kUnregistrationCallerKey[] = "gcm_unreg_caller"; | 17 const char kUnregistrationCallerKey[] = "gcm_unreg_caller"; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 77 |
77 // Other UMAs are only reported when the request succeeds. | 78 // Other UMAs are only reported when the request succeeds. |
78 if (status != UnregistrationRequest::SUCCESS) | 79 if (status != UnregistrationRequest::SUCCESS) |
79 return; | 80 return; |
80 | 81 |
81 UMA_HISTOGRAM_COUNTS("GCM.UnregistrationRetryCount", retry_count); | 82 UMA_HISTOGRAM_COUNTS("GCM.UnregistrationRetryCount", retry_count); |
82 UMA_HISTOGRAM_TIMES("GCM.UnregistrationCompleteTime", complete_time); | 83 UMA_HISTOGRAM_TIMES("GCM.UnregistrationCompleteTime", complete_time); |
83 } | 84 } |
84 | 85 |
85 } // namespace gcm | 86 } // namespace gcm |
OLD | NEW |