| Index: net/url_request/url_request_job.cc
|
| diff --git a/net/url_request/url_request_job.cc b/net/url_request/url_request_job.cc
|
| index dcfdeaa755fe54dfe49af399c6243b27e9a83e75..71ce78cbc0ec41e22e86ee512b2798847eb8362b 100644
|
| --- a/net/url_request/url_request_job.cc
|
| +++ b/net/url_request/url_request_job.cc
|
| @@ -10,7 +10,6 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/location.h"
|
| #include "base/metrics/histogram_macros.h"
|
| -#include "base/power_monitor/power_monitor.h"
|
| #include "base/profiler/scoped_tracker.h"
|
| #include "base/single_thread_task_runner.h"
|
| #include "base/strings/string_number_conversions.h"
|
| @@ -131,15 +130,9 @@ URLRequestJob::URLRequestJob(URLRequest* request,
|
| last_notified_total_received_bytes_(0),
|
| last_notified_total_sent_bytes_(0),
|
| weak_factory_(this) {
|
| - base::PowerMonitor* power_monitor = base::PowerMonitor::Get();
|
| - if (power_monitor)
|
| - power_monitor->AddObserver(this);
|
| }
|
|
|
| URLRequestJob::~URLRequestJob() {
|
| - base::PowerMonitor* power_monitor = base::PowerMonitor::Get();
|
| - if (power_monitor)
|
| - power_monitor->RemoveObserver(this);
|
| }
|
|
|
| void URLRequestJob::SetUpload(UploadDataStream* upload) {
|
| @@ -334,21 +327,6 @@ HostPortPair URLRequestJob::GetSocketAddress() const {
|
| return HostPortPair();
|
| }
|
|
|
| -void URLRequestJob::OnSuspend() {
|
| - // Most errors generated by the Job come as the result of the one current
|
| - // operation the job is waiting on returning an error. This event is unusual
|
| - // in that the Job may have another operation ongoing, or the Job may be idle
|
| - // and waiting on the next call.
|
| - //
|
| - // Need to cancel through the request to make sure everything is notified
|
| - // of the failure (Particularly that the NetworkDelegate, which the Job may be
|
| - // waiting on, is notified synchronously) and torn down correctly.
|
| - //
|
| - // TODO(mmenke): This should probably fail the request with
|
| - // NETWORK_IO_SUSPENDED instead.
|
| - request_->Cancel();
|
| -}
|
| -
|
| void URLRequestJob::NotifyURLRequestDestroyed() {
|
| }
|
|
|
|
|