diff options
Diffstat (limited to 'chrome/browser/net/url_request_mock_util.cc')
-rw-r--r-- | chrome/browser/net/url_request_mock_util.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/net/url_request_mock_util.cc b/chrome/browser/net/url_request_mock_util.cc index 6255c60..bbe90df 100644 --- a/chrome/browser/net/url_request_mock_util.cc +++ b/chrome/browser/net/url_request_mock_util.cc @@ -11,8 +11,8 @@ #include "chrome/common/chrome_paths.h" #include "content/public/browser/browser_thread.h" #include "content/test/net/url_request_failed_job.h" -#include "content/test/net/url_request_mock_http_job.h" #include "content/test/net/url_request_slow_download_job.h" +#include "net/test/url_request/url_request_mock_http_job.h" #include "net/url_request/url_request_filter.h" using content::BrowserThread; @@ -37,7 +37,8 @@ void SetUrlRequestMocksEnabled(bool enabled) { base::FilePath root_http; PathService::Get(chrome::DIR_TEST_DATA, &root_http); - content::URLRequestMockHTTPJob::AddUrlHandler(root_http); + net::URLRequestMockHTTPJob::AddUrlHandler(root_http, + BrowserThread::GetBlockingPool()); } else { // Revert to the default handlers. net::URLRequestFilter::GetInstance()->ClearHandlers(); |