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

Unified Diff: net/url_request/url_request_job.cc

Issue 10959020: SystemMonitor refactoring: move power state monitor into a separate class called PowerMonitor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: make HWNDMessageHandler as a friend class of PowerMonitor Created 8 years, 2 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
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 66fc9f3235687881e53b289889983641fcf9a10a..14c80fa923a5380df60c4871246e9e76ee29d154 100644
--- a/net/url_request/url_request_job.cc
+++ b/net/url_request/url_request_job.cc
@@ -34,9 +34,9 @@ URLRequestJob::URLRequestJob(URLRequest* request,
deferred_redirect_status_code_(-1),
network_delegate_(network_delegate),
ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) {
- base::SystemMonitor* system_monitor = base::SystemMonitor::Get();
+ base::PowerMonitor* system_monitor = base::PowerMonitor::Get();
if (system_monitor)
- base::SystemMonitor::Get()->AddPowerObserver(this);
+ base::PowerMonitor::Get()->AddPowerObserver(this);
}
void URLRequestJob::SetUpload(UploadData* upload) {
@@ -220,9 +220,9 @@ void URLRequestJob::NotifyURLRequestDestroyed() {
}
URLRequestJob::~URLRequestJob() {
- base::SystemMonitor* system_monitor = base::SystemMonitor::Get();
+ base::PowerMonitor* system_monitor = base::PowerMonitor::Get();
if (system_monitor)
- base::SystemMonitor::Get()->RemovePowerObserver(this);
+ base::PowerMonitor::Get()->RemovePowerObserver(this);
}
void URLRequestJob::NotifyCertificateRequested(

Powered by Google App Engine
This is Rietveld 408576698