diff options
Diffstat (limited to 'chrome/browser/net/url_request_mock_util.cc')
-rw-r--r-- | chrome/browser/net/url_request_mock_util.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/chrome/browser/net/url_request_mock_util.cc b/chrome/browser/net/url_request_mock_util.cc index b3ac398..e6531f8 100644 --- a/chrome/browser/net/url_request_mock_util.cc +++ b/chrome/browser/net/url_request_mock_util.cc @@ -7,7 +7,6 @@ #include <string> #include "base/path_service.h" -#include "base/thread_restrictions.h" #include "chrome/browser/browser_thread.h" #include "chrome/browser/net/url_request_failed_dns_job.h" #include "chrome/browser/net/url_request_mock_http_job.h" @@ -25,11 +24,6 @@ void SetUrlRequestMocksEnabled(bool enabled) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); if (enabled) { - // We have to look around for our helper files, but we only use - // this from tests, so allow these IO operations to happen - // anywhere. - base::ThreadRestrictions::ScopedAllowIO allow_io; - URLRequestFilter::GetInstance()->ClearHandlers(); URLRequestFailedDnsJob::AddUrlHandler(); |