| Index: net/url_request/url_request.cc
|
| diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
|
| index 8ea6325d819e072b5ad455b4c68867c90b7fa131..713e153139bea71e20ef67aad429ac94fb381fe5 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);
|
|
|
|
|