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

Unified Diff: net/socket/ssl_client_socket_openssl.cc

Issue 364943002: Makes waiting SSLConnectJobs use the message loops to resume their connection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved documentation and switched to use a temp var of the task_runner. Created 6 years, 5 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_client_socket_openssl.cc
diff --git a/net/socket/ssl_client_socket_openssl.cc b/net/socket/ssl_client_socket_openssl.cc
index 97742bbeec58158690ff3f89d80f31a1a6bf9500..b09474461a3ea89929a6cabd830ec88a7175ee6c 100644
--- a/net/socket/ssl_client_socket_openssl.cc
+++ b/net/socket/ssl_client_socket_openssl.cc
@@ -16,6 +16,7 @@
#include "base/memory/singleton.h"
#include "base/metrics/histogram.h"
#include "base/synchronization/lock.h"
+#include "base/thread_task_runner_handle.h"
#include "crypto/ec_private_key.h"
#include "crypto/openssl_util.h"
#include "net/base/net_errors.h"
@@ -394,7 +395,7 @@ void SSLClientSocketOpenSSL::SetIsLeader() {
void SSLClientSocketOpenSSL::OnSocketFailure() {
if (is_leader_) {
- error_callback_.Run();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, error_callback_);
error_callback_ = base::Closure();
is_leader_ = false;
}

Powered by Google App Engine
This is Rietveld 408576698