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

Unified Diff: content/browser/memory/memory_coordinator_impl.h

Issue 2943603002: Remove MemoryCondition::WARNING (Closed)
Patch Set: rebase Created 3 years, 6 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: content/browser/memory/memory_coordinator_impl.h
diff --git a/content/browser/memory/memory_coordinator_impl.h b/content/browser/memory/memory_coordinator_impl.h
index 54c04bbf98a2f62fd5d1ae3b92b5e3200bacbad8..0b25907838950db492539bc7f215dc311a0a60de 100644
--- a/content/browser/memory/memory_coordinator_impl.h
+++ b/content/browser/memory/memory_coordinator_impl.h
@@ -38,8 +38,7 @@ using MemoryState = base::MemoryState;
// to purge memory, and scheduling tab discarding.
enum class MemoryCondition : int {
NORMAL = 0,
- WARNING = 1,
- CRITICAL = 2,
+ CRITICAL = 1,
};
// MemoryCoordinatorImpl is an implementation of MemoryCoordinator.
@@ -55,8 +54,6 @@ class CONTENT_EXPORT MemoryCoordinatorImpl : public base::MemoryCoordinator,
public:
virtual ~Policy() {}
- // Called periodically while the memory condition is WARNING.
- virtual void OnWarningCondition() {}
// Called periodically while the memory condition is CRITICAL.
virtual void OnCriticalCondition() {}
// Called when the current MemoryCondition has changed.
« no previous file with comments | « content/browser/memory/memory_coordinator_default_policy.cc ('k') | content/browser/memory/memory_coordinator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698