summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-23 21:03:42 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-23 21:03:42 +0000
commitbd0b74374adf2bdcc7edf528e54b9ee96e2bcf35 (patch)
treeec0c0a5ee11c27a29f8a2a743f869fc75d988909 /net
parent4b59ae60479a8766e4d0d8a9a8ddd9e32aa84e41 (diff)
downloadchromium_src-bd0b74374adf2bdcc7edf528e54b9ee96e2bcf35.zip
chromium_src-bd0b74374adf2bdcc7edf528e54b9ee96e2bcf35.tar.gz
chromium_src-bd0b74374adf2bdcc7edf528e54b9ee96e2bcf35.tar.bz2
Following the style guide, replace the overloaded operator==
with the Equals method. R=eroman BUG=http://crbug.com/318 TEST=none Review URL: http://codereview.chromium.org/146040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19056 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/base/x509_certificate.h2
-rw-r--r--net/http/http_network_transaction.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h
index b50a406..5956826 100644
--- a/net/base/x509_certificate.h
+++ b/net/base/x509_certificate.h
@@ -38,7 +38,7 @@ class X509Certificate : public base::RefCountedThreadSafe<X509Certificate> {
public:
// SHA-1 fingerprint (160 bits) of a certificate.
struct Fingerprint {
- bool operator==(const Fingerprint& other) const {
+ bool Equals(const Fingerprint& other) const {
return memcmp(data, other.data, sizeof(data)) == 0;
}
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index c1a654f..c22b21f 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -1342,7 +1342,7 @@ int HttpNetworkTransaction::HandleCertificateRequest(int error) {
const std::vector<scoped_refptr<X509Certificate> >& client_certs =
response_.cert_request_info->client_certs;
for (size_t i = 0; i < client_certs.size(); ++i) {
- if (client_cert->fingerprint() == client_certs[i]->fingerprint()) {
+ if (client_cert->fingerprint().Equals(client_certs[i]->fingerprint())) {
ssl_config_.client_cert = client_cert;
ssl_config_.send_client_cert = true;
next_state_ = STATE_INIT_CONNECTION;