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

Unified Diff: chrome/browser/extensions/extension_protocols.cc

Issue 10700117: Replaced static URLRequestFileJob factory with non-static protocol handler for File jobs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed context from file_dir_job, merged with error_job cl Created 8 years, 5 months 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
Index: chrome/browser/extensions/extension_protocols.cc
diff --git a/chrome/browser/extensions/extension_protocols.cc b/chrome/browser/extensions/extension_protocols.cc
index dce2393efdabab8742afb85cbfd5153ea022f772..4171414ca80ee54e90b4f20a7f9023dcdc5f190f 100644
--- a/chrome/browser/extensions/extension_protocols.cc
+++ b/chrome/browser/extensions/extension_protocols.cc
@@ -157,8 +157,9 @@ class URLRequestExtensionJob : public net::URLRequestFileJob {
URLRequestExtensionJob(net::URLRequest* request,
const FilePath& filename,
const std::string& content_security_policy,
- bool send_cors_header)
- : net::URLRequestFileJob(request, filename) {
+ bool send_cors_header,
+ net::NetworkDelegate* network_delegate)
+ : net::URLRequestFileJob(request, filename, network_delegate) {
response_info_.headers = BuildHttpHeaders(content_security_policy,
send_cors_header);
}
@@ -338,7 +339,8 @@ ExtensionProtocolHandler::MaybeCreateJob(net::URLRequest* request) const {
}
return new URLRequestExtensionJob(request, resource_file_path,
- content_security_policy, send_cors_header);
+ content_security_policy, send_cors_header,
+ request->context()->network_delegate());
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698