| Index: net/http/http_network_session.cc
|
| diff --git a/net/http/http_network_session.cc b/net/http/http_network_session.cc
|
| index ffa7b261570d0e1c4d17bfc98a34a45ca50d6890..fda084eab56900bcf246229fa108e0e9c72f91f0 100644
|
| --- a/net/http/http_network_session.cc
|
| +++ b/net/http/http_network_session.cc
|
| @@ -482,22 +482,8 @@ void HttpNetworkSession::OnMemoryPressure(
|
| }
|
| }
|
|
|
| -void HttpNetworkSession::OnMemoryStateChange(base::MemoryState state) {
|
| - // TODO(hajimehoshi): When the state changes, adjust the sizes of the caches
|
| - // to reduce the limits. HttpNetworkSession doesn't have the ability to limit
|
| - // at present.
|
| - switch (state) {
|
| - case base::MemoryState::NORMAL:
|
| - break;
|
| - case base::MemoryState::THROTTLED:
|
| - CloseIdleConnections();
|
| - break;
|
| - case base::MemoryState::SUSPENDED:
|
| - // Note: Not supported at present. Fall through.
|
| - case base::MemoryState::UNKNOWN:
|
| - NOTREACHED();
|
| - break;
|
| - }
|
| +void HttpNetworkSession::OnPurgeMemory() {
|
| + CloseIdleConnections();
|
| }
|
|
|
| } // namespace net
|
|
|