Commit 808c21c8 authored by Matt Mueller's avatar Matt Mueller Committed by Commit Bot

Remove dead code: net::ResetNSSHttpIOForTesting

Unused since f0747fdc.

Change-Id: Ibe0d24c416107f754bf3e835fd1a63000a37a42d
Reviewed-on: https://chromium-review.googlesource.com/964983Reviewed-by: default avatarEric Roman <eroman@chromium.org>
Commit-Queue: Matt Mueller <mattm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#544076}
parent ca81d0ac
......@@ -90,23 +90,6 @@ class OCSPIOLoop {
void AddRequest(OCSPRequestSession* request);
void RemoveRequest(OCSPRequestSession* request);
// Clears internal state and calls |StartUsing()|. Should be called only in
// the context of testing.
void ReuseForTesting() {
{
base::AutoLock autolock(lock_);
DCHECK(base::MessageLoopForIO::current());
thread_checker_.DetachFromThread();
// CalledOnValidThread is the only available API to reassociate
// thread_checker_ with the current thread. Result ignored intentionally.
ignore_result(thread_checker_.CalledOnValidThread());
shutdown_ = false;
used_ = false;
}
StartUsing();
}
private:
friend struct base::LazyInstanceTraitsBase<OCSPIOLoop>;
......@@ -881,10 +864,6 @@ void ShutdownNSSHttpIO() {
g_ocsp_io_loop.Get().Shutdown();
}
void ResetNSSHttpIOForTesting() {
g_ocsp_io_loop.Get().ReuseForTesting();
}
// This function would be called before NSS initialization.
void SetURLRequestContextForNSSHttpIO(URLRequestContext* request_context) {
pthread_mutex_lock(&g_request_context_lock);
......
......@@ -26,10 +26,6 @@ NET_EXPORT void EnsureNSSHttpIOInit();
// related HTTP fetches.
NET_EXPORT void ShutdownNSSHttpIO();
// Can be called after a call to |ShutdownNSSHttpIO()| to reset internal state
// and associate it with the current thread.
NET_EXPORT void ResetNSSHttpIOForTesting();
// Sets the URLRequestContext for HTTP requests issued by NSS.
NET_EXPORT void SetURLRequestContextForNSSHttpIO(
URLRequestContext* request_context);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment