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

Unified Diff: net/base/multi_threaded_cert_verifier.cc

Issue 10534117: Fix NetLog thread safety issue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update text Created 8 years, 6 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 | « no previous file | net/base/x509_certificate_net_log_param.h » ('j') | net/base/x509_certificate_net_log_param.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/multi_threaded_cert_verifier.cc
===================================================================
--- net/base/multi_threaded_cert_verifier.cc (revision 141669)
+++ net/base/multi_threaded_cert_verifier.cc (working copy)
@@ -152,7 +152,7 @@
// Returns the certificate being verified. May only be called /before/
// Start() is called.
- X509Certificate* certificate() const { return cert_; }
+ scoped_refptr<const X509Certificate> certificate() const { return cert_; }
bool Start() {
DCHECK_EQ(MessageLoop::current(), origin_loop_);
@@ -265,8 +265,7 @@
net_log_(net_log) {
net_log_.BeginEvent(
NetLog::TYPE_CERT_VERIFIER_JOB,
- base::Bind(&NetLogX509CertificateCallback,
- base::Unretained(worker_->certificate())));
Ryan Sleevi 2012/06/12 20:22:09 This was safe as-is. Start() has not yet been call
+ CreateNetLogX509CertificateCallback(worker_->certificate()));
}
~CertVerifierJob() {
« no previous file with comments | « no previous file | net/base/x509_certificate_net_log_param.h » ('j') | net/base/x509_certificate_net_log_param.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698