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

Unified Diff: net/url_request/url_request_test_util.cc

Issue 10386127: Use TaskRunner WorkerPool for ServerBoundCertService in TestURLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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 | tools/heapcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_test_util.cc
diff --git a/net/url_request/url_request_test_util.cc b/net/url_request/url_request_test_util.cc
index b81996c25bf6cf738213a6f3b1e95c8c0300db69..cf797e3ba03b447a6c91cd7da3a5f8b0b0e4b716 100644
--- a/net/url_request/url_request_test_util.cc
+++ b/net/url_request/url_request_test_util.cc
@@ -7,8 +7,8 @@
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/message_loop.h"
-#include "base/message_loop_proxy.h"
#include "base/threading/thread.h"
+#include "base/threading/worker_pool.h"
#include "net/base/cert_verifier.h"
#include "net/base/default_server_bound_cert_store.h"
#include "net/base/host_port_pair.h"
@@ -150,7 +150,7 @@ void TestURLRequestContext::Init() {
context_storage_.set_server_bound_cert_service(
new net::ServerBoundCertService(
new net::DefaultServerBoundCertStore(NULL),
- base::MessageLoopProxy::current()));
+ base::WorkerPool::GetTaskRunner(true)));
}
if (accept_language().empty())
set_accept_language("en-us,fr");
« no previous file with comments | « no previous file | tools/heapcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698