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

Unified Diff: net/url_request/url_request_file_job.cc

Issue 15010: Implement extension:// protocol. (Closed)
Patch Set: add missing unit test Created 12 years 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 | « net/url_request/url_request_file_job.h ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_file_job.cc
diff --git a/net/url_request/url_request_file_job.cc b/net/url_request/url_request_file_job.cc
index 9d42e18dd249a131193aecb6a86ae5fd20eab3b9..994a58c178645ccbe5213d3df2324d105b6df27c 100644
--- a/net/url_request/url_request_file_job.cc
+++ b/net/url_request/url_request_file_job.cc
@@ -78,13 +78,13 @@ URLRequestJob* URLRequestFileJob::Factory(
// Use a regular file request job for all non-directories (including invalid
// file names).
- URLRequestFileJob* job = new URLRequestFileJob(request);
- job->file_path_ = file_path;
- return job;
+ return new URLRequestFileJob(request, file_path);
}
-URLRequestFileJob::URLRequestFileJob(URLRequest* request)
+URLRequestFileJob::URLRequestFileJob(URLRequest* request,
+ const FilePath& file_path)
: URLRequestJob(request),
+ file_path_(file_path),
ALLOW_THIS_IN_INITIALIZER_LIST(
io_callback_(this, &URLRequestFileJob::DidRead)),
is_directory_(false) {
« no previous file with comments | « net/url_request/url_request_file_job.h ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698