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

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

Issue 382673002: Fixes for re-enabling more MSVC level 4 warnings: misc edition #2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/mcs_client.cc
diff --git a/google_apis/gcm/engine/mcs_client.cc b/google_apis/gcm/engine/mcs_client.cc
index a99a333a37e0d694c0a5233ef76012c9d89947d1..96db2809d4e86ed558eb0a70e2fbaed8d72aad30 100644
--- a/google_apis/gcm/engine/mcs_client.cc
+++ b/google_apis/gcm/engine/mcs_client.cc
@@ -770,7 +770,8 @@ void MCSClient::HandleStreamAck(StreamId last_stream_id_received) {
void MCSClient::HandleSelectiveAck(const PersistentIdList& id_list) {
std::set<PersistentId> remaining_ids(id_list.begin(), id_list.end());
- StreamId last_stream_id_received = -1;
+ // !!! This looks really wrong, shouldn't this be zero?
+ StreamId last_stream_id_received = 0xFFFFFFFF;
Peter Kasting 2014/07/09 22:19:54 This needs review. See how code below tries to ch
Nicolas Zea 2014/07/09 22:52:35 You're right, this is broken. The lines at 815 are
Peter Kasting 2014/07/09 23:34:25 Done.
// First check the to_resend_ queue. Acknowledgments are always contiguous,
// so if there's a pending message that hasn't been acked, all newer messages

Powered by Google App Engine
This is Rietveld 408576698