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

Unified Diff: chrome/browser/devtools/devtools_ui_bindings.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: chrome/browser/devtools/devtools_ui_bindings.cc
diff --git a/chrome/browser/devtools/devtools_ui_bindings.cc b/chrome/browser/devtools/devtools_ui_bindings.cc
index fd3f0dd9223737448c8a11a3282c3041fd5ad212..3aacbe953785b51de01ab9fd6b703dbe7937ffbb 100644
--- a/chrome/browser/devtools/devtools_ui_bindings.cc
+++ b/chrome/browser/devtools/devtools_ui_bindings.cc
@@ -249,7 +249,7 @@ class ResponseWriter : public net::URLFetcherResponseWriter {
int Write(net::IOBuffer* buffer,
int num_bytes,
const net::CompletionCallback& callback) override;
- int Finish(const net::CompletionCallback& callback) override;
+ int Finish(int net_error, const net::CompletionCallback& callback) override;
private:
base::WeakPtr<DevToolsUIBindings> bindings_;
@@ -293,7 +293,8 @@ int ResponseWriter::Write(net::IOBuffer* buffer,
return num_bytes;
}
-int ResponseWriter::Finish(const net::CompletionCallback& callback) {
+int ResponseWriter::Finish(int net_error,
+ const net::CompletionCallback& callback) {
return net::OK;
}
« no previous file with comments | « no previous file | components/precache/core/precache_fetcher.cc » ('j') | net/url_request/url_fetcher_response_writer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698