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

Unified Diff: components/precache/core/precache_fetcher.cc

Issue 2425673006: Make URLFetcherFileWriter::Finish() skip closing file when there is an error (Closed)
Patch Set: Fix another subclass Created 4 years, 2 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: components/precache/core/precache_fetcher.cc
diff --git a/components/precache/core/precache_fetcher.cc b/components/precache/core/precache_fetcher.cc
index 8f45bff3136821d26dcf92c8a563c76179d90e90..2c4caa0b79ce6c86af7d7a6299ae08e23a2d8352 100644
--- a/components/precache/core/precache_fetcher.cc
+++ b/components/precache/core/precache_fetcher.cc
@@ -152,7 +152,7 @@ class URLFetcherNullWriter : public net::URLFetcherResponseWriter {
return num_bytes;
}
- int Finish(const net::CompletionCallback& callback) override {
+ int Finish(int net_error, const net::CompletionCallback& callback) override {
return net::OK;
}
};

Powered by Google App Engine
This is Rietveld 408576698