| Index: net/http/http_network_layer.cc
|
| diff --git a/net/http/http_network_layer.cc b/net/http/http_network_layer.cc
|
| index 1acc4c01de3b4be021e07477af6d5affe8365d71..a0ed1d4172472f1486582dcf55be58aae0a148ff 100644
|
| --- a/net/http/http_network_layer.cc
|
| +++ b/net/http/http_network_layer.cc
|
| @@ -8,6 +8,7 @@
|
| #include "base/string_number_conversions.h"
|
| #include "base/string_split.h"
|
| #include "base/string_util.h"
|
| +#include "base/system_monitor/system_monitor.h"
|
| #include "net/http/http_network_session.h"
|
| #include "net/http/http_network_transaction.h"
|
| #include "net/http/http_server_properties_impl.h"
|
| @@ -22,9 +23,11 @@ HttpNetworkLayer::HttpNetworkLayer(HttpNetworkSession* session)
|
| : session_(session),
|
| suspended_(false) {
|
| DCHECK(session_.get());
|
| + base::SystemMonitor::Get()->AddPowerObserver(this);
|
| }
|
|
|
| HttpNetworkLayer::~HttpNetworkLayer() {
|
| + base::SystemMonitor::Get()->RemovePowerObserver(this);
|
| }
|
|
|
| //-----------------------------------------------------------------------------
|
|
|