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

Unified Diff: net/sdch/sdch_owner.cc

Issue 2648323005: memory coordinator: Add MemoryCoordinatorClient::OnPurgeMemory() (Closed)
Patch Set: Created 3 years, 11 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/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() {

Powered by Google App Engine
This is Rietveld 408576698