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

Unified Diff: google_apis/gcm/engine/registration_request.cc

Issue 158023007: Add GCM check in status code metric collection. We also decided to collect registration success sig… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 10 months 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 side-by-side diff with in-line comments
Download patch
Index: google_apis/gcm/engine/registration_request.cc
diff --git a/google_apis/gcm/engine/registration_request.cc b/google_apis/gcm/engine/registration_request.cc
index 5635e5e62fdf9108facfc3636c4b8ad576ca2eb3..2880855110bf08053f7f7c7eb2cb3cdeb9fbc037 100644
--- a/google_apis/gcm/engine/registration_request.cc
+++ b/google_apis/gcm/engine/registration_request.cc
@@ -203,6 +203,8 @@ void RegistrationRequest::OnURLFetchComplete(const net::URLFetcher* source) {
if (token_pos != std::string::npos) {
std::string token =
response.substr(token_pos + arraysize(kTokenPrefix) - 1);
+ UMA_HISTOGRAM_ENUMERATION("GCM.RegistrationRequestStatus", SUCCESS,
+ RegistrationRequest::STATUS_COUNT);
callback_.Run(SUCCESS, token);
return;
}

Powered by Google App Engine
This is Rietveld 408576698