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

Side by Side Diff: google_apis/gcm/engine/gcm_registration_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/gcm_registration_request_handler.h" 5 #include "google_apis/gcm/engine/gcm_registration_request_handler.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram_macros.h"
8 #include "google_apis/gcm/base/gcm_util.h" 8 #include "google_apis/gcm/base/gcm_util.h"
9 9
10 namespace gcm { 10 namespace gcm {
11 11
12 namespace { 12 namespace {
13 13
14 // Request constants. 14 // Request constants.
15 const char kSenderKey[] = "sender"; 15 const char kSenderKey[] = "sender";
16 16
17 } // namespace 17 } // namespace
(...skipping 19 matching lines...) Expand all
37 37
38 // Other UMAs are only reported when the request succeeds. 38 // Other UMAs are only reported when the request succeeds.
39 if (status != RegistrationRequest::SUCCESS) 39 if (status != RegistrationRequest::SUCCESS)
40 return; 40 return;
41 41
42 UMA_HISTOGRAM_COUNTS("GCM.RegistrationRetryCount", retry_count); 42 UMA_HISTOGRAM_COUNTS("GCM.RegistrationRetryCount", retry_count);
43 UMA_HISTOGRAM_TIMES("GCM.RegistrationCompleteTime", complete_time); 43 UMA_HISTOGRAM_TIMES("GCM.RegistrationCompleteTime", complete_time);
44 } 44 }
45 45
46 } // namespace gcm 46 } // namespace gcm
OLDNEW
« no previous file with comments | « google_apis/drive/auth_service.cc ('k') | google_apis/gcm/engine/gcm_unregistration_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698