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

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

Issue 1548673002: Switch to standard integer types in google_apis/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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 unified diff | Download patch
OLDNEW
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/checkin_request.h" 5 #include "google_apis/gcm/engine/checkin_request.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 recorder->RecordCheckinSuccess(); 73 recorder->RecordCheckinSuccess();
74 else { 74 else {
75 recorder->RecordCheckinFailure(GetCheckinRequestStatusString(status), 75 recorder->RecordCheckinFailure(GetCheckinRequestStatusString(status),
76 will_retry); 76 will_retry);
77 } 77 }
78 } 78 }
79 79
80 } // namespace 80 } // namespace
81 81
82 CheckinRequest::RequestInfo::RequestInfo( 82 CheckinRequest::RequestInfo::RequestInfo(
83 uint64 android_id, 83 uint64_t android_id,
84 uint64 security_token, 84 uint64_t security_token,
85 const std::map<std::string, std::string>& account_tokens, 85 const std::map<std::string, std::string>& account_tokens,
86 const std::string& settings_digest, 86 const std::string& settings_digest,
87 const checkin_proto::ChromeBuildProto& chrome_build_proto) 87 const checkin_proto::ChromeBuildProto& chrome_build_proto)
88 : android_id(android_id), 88 : android_id(android_id),
89 security_token(security_token), 89 security_token(security_token),
90 account_tokens(account_tokens), 90 account_tokens(account_tokens),
91 settings_digest(settings_digest), 91 settings_digest(settings_digest),
92 chrome_build_proto(chrome_build_proto) { 92 chrome_build_proto(chrome_build_proto) {}
93 }
94 93
95 CheckinRequest::RequestInfo::~RequestInfo() {} 94 CheckinRequest::RequestInfo::~RequestInfo() {}
96 95
97 CheckinRequest::CheckinRequest( 96 CheckinRequest::CheckinRequest(
98 const GURL& checkin_url, 97 const GURL& checkin_url,
99 const RequestInfo& request_info, 98 const RequestInfo& request_info,
100 const net::BackoffEntry::Policy& backoff_policy, 99 const net::BackoffEntry::Policy& backoff_policy,
101 const CheckinRequestCallback& callback, 100 const CheckinRequestCallback& callback,
102 net::URLRequestContextGetter* request_context_getter, 101 net::URLRequestContextGetter* request_context_getter,
103 GCMStatsRecorder* recorder) 102 GCMStatsRecorder* recorder)
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 219
221 RecordCheckinStatusAndReportUMA(SUCCESS, recorder_, false); 220 RecordCheckinStatusAndReportUMA(SUCCESS, recorder_, false);
222 UMA_HISTOGRAM_COUNTS("GCM.CheckinRetryCount", 221 UMA_HISTOGRAM_COUNTS("GCM.CheckinRetryCount",
223 backoff_entry_.failure_count()); 222 backoff_entry_.failure_count());
224 UMA_HISTOGRAM_TIMES("GCM.CheckinCompleteTime", 223 UMA_HISTOGRAM_TIMES("GCM.CheckinCompleteTime",
225 base::TimeTicks::Now() - request_start_time_); 224 base::TimeTicks::Now() - request_start_time_);
226 callback_.Run(response_proto); 225 callback_.Run(response_proto);
227 } 226 }
228 227
229 } // namespace gcm 228 } // namespace gcm
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/checkin_request.h ('k') | google_apis/gcm/engine/checkin_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698