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

Unified Diff: net/url_request/url_fetcher_core.cc

Issue 10754014: Wallpaper manager backend APIs (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
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());
-
if (request_.get()) {
request_->Cancel();
ReleaseRequest();

Powered by Google App Engine
This is Rietveld 408576698