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

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

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.cc
diff --git a/content/browser/memory/memory_coordinator_impl.cc b/content/browser/memory/memory_coordinator_impl.cc
index 299e0c8472cf4a8b914ca3e2532e5fa510d6b634..8e16c622ebf4c3c00ae1830bfee14148d3c1544f 100644
--- a/content/browser/memory/memory_coordinator_impl.cc
+++ b/content/browser/memory/memory_coordinator_impl.cc
@@ -48,8 +48,6 @@ const char* MemoryConditionToString(MemoryCondition condition) {
switch (condition) {
case MemoryCondition::NORMAL:
return "normal";
- case MemoryCondition::WARNING:
- return "warning";
case MemoryCondition::CRITICAL:
return "critical";
}
@@ -322,9 +320,7 @@ void MemoryCoordinatorImpl::UpdateConditionIfNeeded(
MemoryCondition next_condition) {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
- if (next_condition == MemoryCondition::WARNING)
- policy_->OnWarningCondition();
- else if (next_condition == MemoryCondition::CRITICAL)
+ if (next_condition == MemoryCondition::CRITICAL)
policy_->OnCriticalCondition();
if (suppress_condition_change_until_ > tick_clock_->NowTicks() ||
« no previous file with comments | « content/browser/memory/memory_coordinator_impl.h ('k') | content/browser/memory/memory_coordinator_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698