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

Unified Diff: net/url_request/url_request_file_job.cc

Issue 10830124: Removed checks that verify URLRequest has a Context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_http_job.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 ce0cc8be7d3fdc8b76dfaad2cdbd7d3521afd521..a16f7b14c513b71f91085c03e47ef2b357b22434 100644
--- a/net/url_request/url_request_file_job.cc
+++ b/net/url_request/url_request_file_job.cc
@@ -253,10 +253,7 @@ void URLRequestFileJob::SetExtraRequestHeaders(
// static
bool URLRequestFileJob::IsFileAccessAllowed(const URLRequest& request,
const FilePath& path) {
- const URLRequestContext* context = request.context();
- if (!context)
- return false;
- const NetworkDelegate* delegate = context->network_delegate();
+ const NetworkDelegate* delegate = request.context()->network_delegate();
if (delegate)
return delegate->CanAccessFile(request, path);
return false;
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698