diff options
author | shalev@chromium.org <shalev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-20 20:30:46 +0000 |
---|---|---|
committer | shalev@chromium.org <shalev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-20 20:30:46 +0000 |
commit | 65dcdc57900aa995316f626d00e563dde7d1159d (patch) | |
tree | 7f22b347d398d58bf6b761a4537230421c15b446 /content | |
parent | 37cfa2aa6671ac042d83b1f7fb9dd1806503f31c (diff) | |
download | chromium_src-65dcdc57900aa995316f626d00e563dde7d1159d.zip chromium_src-65dcdc57900aa995316f626d00e563dde7d1159d.tar.gz chromium_src-65dcdc57900aa995316f626d00e563dde7d1159d.tar.bz2 |
Replaced static URLRequestFileJob factory with non-static protocol handler for File jobs
This is a refactor and shouldn't have any visible behavioral change.
BUG=crbug.com/142945
TEST=browser_tests --single_process --gtest_filter=FullscreenControllerTest.FullscreenFileURL
Review URL: https://chromiumcodereview.appspot.com/10700117
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152381 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/test/net/url_request_mock_http_job.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/content/test/net/url_request_mock_http_job.cc b/content/test/net/url_request_mock_http_job.cc index 805e9859..69f57622d 100644 --- a/content/test/net/url_request_mock_http_job.cc +++ b/content/test/net/url_request_mock_http_job.cc @@ -12,6 +12,7 @@ #include "content/public/common/url_constants.h" #include "net/base/net_util.h" #include "net/http/http_response_headers.h" +#include "net/url_request/url_request_context.h" #include "net/url_request/url_request_filter.h" const char kMockHostname[] = "mock.http"; @@ -82,7 +83,9 @@ FilePath URLRequestMockHTTPJob::GetOnDiskPath(const FilePath& base_path, URLRequestMockHTTPJob::URLRequestMockHTTPJob(net::URLRequest* request, const FilePath& file_path) - : net::URLRequestFileJob(request, file_path) { } + : net::URLRequestFileJob(request, + file_path, + request->context()->network_delegate()) { } // Public virtual version. void URLRequestMockHTTPJob::GetResponseInfo(net::HttpResponseInfo* info) { |