summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/url_request/url_request_file_job.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/url_request/url_request_file_job.cc b/net/url_request/url_request_file_job.cc
index d0841e5..9d42e18 100644
--- a/net/url_request/url_request_file_job.cc
+++ b/net/url_request/url_request_file_job.cc
@@ -164,12 +164,11 @@ void URLRequestFileJob::DidResolve(
if (!request_)
return;
- DCHECK(!file_info.is_directory);
-
int rv = net::OK;
if (!exists) {
rv = net::ERR_FILE_NOT_FOUND;
} else {
+ DCHECK(!file_info.is_directory);
int flags = base::PLATFORM_FILE_OPEN |
base::PLATFORM_FILE_READ |
base::PLATFORM_FILE_ASYNC;