Index: net/base/x509_certificate_win.cc |
diff --git a/net/base/x509_certificate_win.cc b/net/base/x509_certificate_win.cc |
index fed56e38cb12048c7c4d2a66e6077a4860eb858f..98e3367fa0c368eaa1b4825263629e09728f502f 100644 |
--- a/net/base/x509_certificate_win.cc |
+++ b/net/base/x509_certificate_win.cc |
@@ -405,7 +405,7 @@ void ParsePrincipal(const std::string& description, |
for (int i = 0; i < arraysize(single_value_lists); ++i) { |
int length = static_cast<int>(single_value_lists[i]->size()); |
DCHECK(single_value_lists[i]->size() <= 1); |
- if (single_value_lists[i]->size() > 0) |
+ if (!single_value_lists[i]->empty()) |
*(single_values[i]) = (*(single_value_lists[i]))[0]; |
} |
} |