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

Unified Diff: net/url_request/url_request.cc

Issue 1072423005: Set network_accessed earlier, when network transaction creates stream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also set network_accessed in URLRequest::NotifyBeforeNetworkStart Created 5 years, 8 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
« no previous file with comments | « net/http/http_network_transaction.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 6032c4cb4885b6f6124939844a44d4c7e165bf79..39cfbfeadcb31b12a6668c09c73d1950065651c7 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -768,6 +768,8 @@ void URLRequest::NotifyReceivedRedirect(const RedirectInfo& redirect_info,
}
void URLRequest::NotifyBeforeNetworkStart(bool* defer) {
+ response_info_.network_accessed = true;
davidben 2015/05/04 17:57:19 Why does this get set in two places and at two com
+
if (delegate_ && !notified_before_network_start_) {
OnCallToDelegate();
delegate_->OnBeforeNetworkStart(this, defer);
« no previous file with comments | « net/http/http_network_transaction.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698