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

Unified Diff: net/socket/ssl_host_info.cc

Issue 6609008: Change other usages of .size() to .empty() when applicable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter nits Created 9 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
« no previous file with comments | « net/http/http_util.cc ('k') | net/tools/flip_server/balsa_headers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_host_info.cc
diff --git a/net/socket/ssl_host_info.cc b/net/socket/ssl_host_info.cc
index 5131949cc937519d0ed50ad0d1da917ea89ac21b..9d631bb2b9a3a1dee52dc81b334bb5d35e8150df 100644
--- a/net/socket/ssl_host_info.cc
+++ b/net/socket/ssl_host_info.cc
@@ -115,7 +115,7 @@ bool SSLHostInfo::ParseInner(const std::string& data) {
state->npn_status = static_cast<SSLClientSocket::NextProtoStatus>(status);
}
- if (state->certs.size() > 0) {
+ if (!state->certs.empty()) {
std::vector<base::StringPiece> der_certs(state->certs.size());
for (size_t i = 0; i < state->certs.size(); i++)
der_certs[i] = state->certs[i];
« no previous file with comments | « net/http/http_util.cc ('k') | net/tools/flip_server/balsa_headers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698