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

Unified Diff: net/http/failing_http_transaction_factory.cc

Issue 2519473002: Fixes the cache lock issue. (Closed)
Patch Set: Initial patch Created 4 years 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/http/failing_http_transaction_factory.cc
diff --git a/net/http/failing_http_transaction_factory.cc b/net/http/failing_http_transaction_factory.cc
index 7d49327a57a46dfec9e498da811b08310b1304b8..08aafd612782a10240b870a0d9e2008d52e2aa6c 100644
--- a/net/http/failing_http_transaction_factory.cc
+++ b/net/http/failing_http_transaction_factory.cc
@@ -40,6 +40,7 @@ class FailingHttpTransaction : public HttpTransaction {
int Start(const HttpRequestInfo* request_info,
const CompletionCallback& callback,
const NetLogWithSource& net_log) override;
+ void Orphan(std::unique_ptr<HttpTransaction> trans) override;
int RestartIgnoringLastError(const CompletionCallback& callback) override;
int RestartWithCertificate(X509Certificate* client_cert,
SSLPrivateKey* client_private_key,
@@ -90,6 +91,11 @@ int FailingHttpTransaction::Start(const HttpRequestInfo* request_info,
return ERR_IO_PENDING;
}
+void FailingHttpTransaction::Orphan(std::unique_ptr<HttpTransaction> trans) {
+ NOTREACHED();
+ return;
+}
+
int FailingHttpTransaction::RestartIgnoringLastError(
const CompletionCallback& callback) {
return ERR_FAILED;

Powered by Google App Engine
This is Rietveld 408576698