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

Unified Diff: net/socket/ssl_host_info.cc

Issue 9447084: Refactor Pickle Read methods to use higher performance PickleIterator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jar feedback Created 8 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: net/socket/ssl_host_info.cc
diff --git a/net/socket/ssl_host_info.cc b/net/socket/ssl_host_info.cc
index bc4a43eac880e6082ec4f71e7b261406b9dc90b1..32d899bb415d2861feed9bb2d8b7cc0f00e8ce05 100644
--- a/net/socket/ssl_host_info.cc
+++ b/net/socket/ssl_host_info.cc
@@ -64,7 +64,7 @@ bool SSLHostInfo::ParseInner(const std::string& data) {
State* state = mutable_state();
Pickle p(data.data(), data.size());
- void* iter = NULL;
+ PickleReader iter(p);
int num_der_certs;
if (!p.ReadInt(&iter, &num_der_certs) ||

Powered by Google App Engine
This is Rietveld 408576698