| Index: net/sdch/sdch_owner.cc
|
| diff --git a/net/sdch/sdch_owner.cc b/net/sdch/sdch_owner.cc
|
| index 047e6665e3149f1918113a19b861f267aaef5386..2e17afa0d2b9fa3f77404bc733c98118ea885acf 100644
|
| --- a/net/sdch/sdch_owner.cc
|
| +++ b/net/sdch/sdch_owner.cc
|
| @@ -680,22 +680,8 @@ void SdchOwner::OnMemoryPressure(
|
| ClearData();
|
| }
|
|
|
| -void SdchOwner::OnMemoryStateChange(base::MemoryState state) {
|
| - // TODO(hajimehoshi): When the state changes, adjust the sizes of the caches
|
| - // to reduce the limits. SdchOwner doesn't have the ability to limit at
|
| - // present.
|
| - switch (state) {
|
| - case base::MemoryState::NORMAL:
|
| - break;
|
| - case base::MemoryState::THROTTLED:
|
| - ClearData();
|
| - break;
|
| - case base::MemoryState::SUSPENDED:
|
| - // Note: Not supported at present. Fall through.
|
| - case base::MemoryState::UNKNOWN:
|
| - NOTREACHED();
|
| - break;
|
| - }
|
| +void SdchOwner::OnPurgeMemory() {
|
| + ClearData();
|
| }
|
|
|
| void SdchOwner::ClearData() {
|
|
|