Chromium Code Reviews| Index: net/url_request/url_fetcher_core.cc |
| diff --git a/net/url_request/url_fetcher_core.cc b/net/url_request/url_fetcher_core.cc |
| index 6041e0cd8328cee5d162a1814f0297e78863568f..56609237124442da05b242edaafb532c74dcdbe1 100644 |
| --- a/net/url_request/url_fetcher_core.cc |
| +++ b/net/url_request/url_fetcher_core.cc |
| @@ -211,7 +211,6 @@ void URLFetcherCore::FileWriter::DidCreateFileInternal( |
| base::PlatformFileError error_code, |
| base::PassPlatformFile file_handle) { |
| DCHECK(core_->network_task_runner_->BelongsToCurrentThread()); |
| - |
| if (base::PLATFORM_FILE_OK != error_code) { |
| error_code_ = error_code; |
| RemoveFile(); |
| @@ -626,7 +625,6 @@ void URLFetcherCore::StartOnIOThread() { |
| case TEMP_FILE: |
| DCHECK(file_task_runner_.get()) |
| << "Need to set the file task runner."; |
| - |
| file_writer_.reset(new FileWriter(this, file_task_runner_)); |
| // If the file is successfully created, |
| @@ -650,7 +648,6 @@ void URLFetcherCore::StartOnIOThread() { |
| void URLFetcherCore::StartURLRequest() { |
| DCHECK(network_task_runner_->BelongsToCurrentThread()); |
| - |
| if (was_cancelled_) { |
| // Since StartURLRequest() is posted as a *delayed* task, it may |
| // run after the URLFetcher was already stopped. |
| @@ -738,7 +735,6 @@ void URLFetcherCore::StartURLRequest() { |
| void URLFetcherCore::StartURLRequestWhenAppropriate() { |
| DCHECK(network_task_runner_->BelongsToCurrentThread()); |
| - |
| if (was_cancelled_) |
| return; |
| @@ -769,7 +765,6 @@ void URLFetcherCore::StartURLRequestWhenAppropriate() { |
| void URLFetcherCore::CancelURLRequest() { |
| DCHECK(network_task_runner_->BelongsToCurrentThread()); |
| - |
|
flackr
2012/07/12 19:26:12
Probably don't need to change this file.
|
| if (request_.get()) { |
| request_->Cancel(); |
| ReleaseRequest(); |