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

Unified Diff: net/quic/crypto/quic_server_info.cc

Issue 818833004: Remove deprecated methods from Pickle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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
« no previous file with comments | « net/http/http_vary_data.cc ('k') | ppapi/nacl_irt/ppapi_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/quic_server_info.cc
diff --git a/net/quic/crypto/quic_server_info.cc b/net/quic/crypto/quic_server_info.cc
index 519d7b5fd6015bd2c0a42b2c7148fc06b125ea91..c86d1f63c107ef2264eb4a8196f84e04f5e2a080 100644
--- a/net/quic/crypto/quic_server_info.cc
+++ b/net/quic/crypto/quic_server_info.cc
@@ -67,7 +67,7 @@ bool QuicServerInfo::ParseInner(const string& data) {
PickleIterator iter(p);
int version = -1;
- if (!p.ReadInt(&iter, &version)) {
+ if (!iter.ReadInt(&version)) {
DVLOG(1) << "Missing version";
return false;
}
@@ -77,29 +77,29 @@ bool QuicServerInfo::ParseInner(const string& data) {
return false;
}
- if (!p.ReadString(&iter, &state->server_config)) {
+ if (!iter.ReadString(&state->server_config)) {
DVLOG(1) << "Malformed server_config";
return false;
}
- if (!p.ReadString(&iter, &state->source_address_token)) {
+ if (!iter.ReadString(&state->source_address_token)) {
DVLOG(1) << "Malformed source_address_token";
return false;
}
- if (!p.ReadString(&iter, &state->server_config_sig)) {
+ if (!iter.ReadString(&state->server_config_sig)) {
DVLOG(1) << "Malformed server_config_sig";
return false;
}
// Read certs.
uint32 num_certs;
- if (!p.ReadUInt32(&iter, &num_certs)) {
+ if (!iter.ReadUInt32(&num_certs)) {
DVLOG(1) << "Malformed num_certs";
return false;
}
for (uint32 i = 0; i < num_certs; i++) {
string cert;
- if (!p.ReadString(&iter, &cert)) {
+ if (!iter.ReadString(&cert)) {
DVLOG(1) << "Malformed cert";
return false;
}
« no previous file with comments | « net/http/http_vary_data.cc ('k') | ppapi/nacl_irt/ppapi_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698