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

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

Issue 2741883004: Remove MemoryCoordinatorProxy::SetCurrentMemoryStateForTesting (Closed)
Patch Set: Created 3 years, 9 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 b403cf462dcf439def9fae164db4987440cc76c5..b8b83a5744e223d58ea5d8ef85f8f0b7331a7ec0 100644
--- a/content/browser/memory/memory_coordinator_impl.cc
+++ b/content/browser/memory/memory_coordinator_impl.cc
@@ -232,14 +232,6 @@ MemoryState MemoryCoordinatorImpl::GetCurrentMemoryState() const {
return browser_memory_state_;
}
-void MemoryCoordinatorImpl::SetCurrentMemoryStateForTesting(
- MemoryState memory_state) {
- // Resets |last_state_change_| so that
- // UpdateBrowserStateAndNotifyStateToClients() to set memory state forcibly.
- last_state_change_ = base::TimeTicks();
- UpdateBrowserStateAndNotifyStateToClients(memory_state);
-}
-
void MemoryCoordinatorImpl::ForceSetMemoryCondition(MemoryCondition condition,
base::TimeDelta duration) {
UpdateConditionIfNeeded(condition);
« 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