Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: google_apis/gcm/engine/instance_id_delete_token_request_handler.cc

Issue 2479093002: Migrate more files to histogram_macros.h from histogram.h. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/instance_id_delete_token_request_handler.h" 5 #include "google_apis/gcm/engine/instance_id_delete_token_request_handler.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "google_apis/gcm/base/gcm_util.h" 10 #include "google_apis/gcm/base/gcm_util.h"
11 #include "net/url_request/url_fetcher.h" 11 #include "net/url_request/url_fetcher.h"
12 #include "net/url_request/url_request_context_getter.h" 12 #include "net/url_request/url_request_context_getter.h"
13 13
14 namespace gcm { 14 namespace gcm {
15 15
16 namespace { 16 namespace {
17 17
18 // Request constants. 18 // Request constants.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Other UMAs are only reported when the request succeeds. 71 // Other UMAs are only reported when the request succeeds.
72 if (status != UnregistrationRequest::SUCCESS) 72 if (status != UnregistrationRequest::SUCCESS)
73 return; 73 return;
74 74
75 UMA_HISTOGRAM_COUNTS("InstanceID.DeleteToken.RetryCount", retry_count); 75 UMA_HISTOGRAM_COUNTS("InstanceID.DeleteToken.RetryCount", retry_count);
76 UMA_HISTOGRAM_TIMES("InstanceID.DeleteToken.CompleteTime", complete_time); 76 UMA_HISTOGRAM_TIMES("InstanceID.DeleteToken.CompleteTime", complete_time);
77 } 77 }
78 78
79 } // namespace gcm 79 } // namespace gcm
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/heartbeat_manager.cc ('k') | google_apis/gcm/engine/instance_id_get_token_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698