diff options
Diffstat (limited to 'net/url_request/url_request.cc')
-rw-r--r-- | net/url_request/url_request.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc index 8ea6325..713e153 100644 --- a/net/url_request/url_request.cc +++ b/net/url_request/url_request.cc @@ -20,6 +20,7 @@ #include "net/base/load_flags.h" #include "net/base/net_errors.h" #include "net/base/net_log.h" +#include "net/base/network_change_notifier.h" #include "net/base/network_delegate.h" #include "net/base/ssl_cert_request_info.h" #include "net/base/upload_data.h" @@ -879,6 +880,11 @@ void URLRequest::NotifyReadCompleted(int bytes_read) { if (bytes_read <= 0) NotifyRequestCompleted(); + // Notify NetworkChangeNotifier that we just received network data. + // This is to identify cases where the NetworkChangeNotifier thinks we + // are off-line but we are still receiving network data (crbug.com/124069). + NetworkChangeNotifier::NotifyDataReceived(url()); + if (delegate_) delegate_->OnReadCompleted(this, bytes_read); |