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

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

Issue 2832753002: memory_coordinator: Use TimeTicks to suppress memory condition update (Closed)
Patch Set: Remove unused const Created 3 years, 8 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
« no previous file with comments | « no previous file | content/browser/memory/memory_coordinator_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c7c5052999fec55c8e9dba163f97f0a37d8b86ef..f70fd2510a552e5d1de84b88a2f35b9df0251798 100644
--- a/content/browser/memory/memory_coordinator_impl.h
+++ b/content/browser/memory/memory_coordinator_impl.h
@@ -233,6 +233,9 @@ class CONTENT_EXPORT MemoryCoordinatorImpl : public base::MemoryCoordinator,
// The current memory condition.
MemoryCondition memory_condition_ = MemoryCondition::NORMAL;
+ // |memory_condition_| won't be updated until this time ticks is passed.
+ base::TimeTicks suppress_condition_change_until_;
+
// The memory state of the browser process.
MemoryState browser_memory_state_ = MemoryState::NORMAL;
« no previous file with comments | « no previous file | content/browser/memory/memory_coordinator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698