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

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

Issue 2941123004: Remove MemoryCoordinator::CanSuspendRenderer() (Closed)
Patch Set: Fix tests 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 4d936a4a19a03a7ec1f9107e9325939fc1d8f24a..54c04bbf98a2f62fd5d1ae3b92b5e3200bacbad8 100644
--- a/content/browser/memory/memory_coordinator_impl.h
+++ b/content/browser/memory/memory_coordinator_impl.h
@@ -179,18 +179,11 @@ class CONTENT_EXPORT MemoryCoordinatorImpl : public base::MemoryCoordinator,
// for testing.
void OnConnectionError(int render_process_id);
- // Returns true when a given renderer can be suspended.
- bool CanSuspendRenderer(int render_process_id);
-
base::SingleThreadTaskRunner* task_runner() { return task_runner_.get(); }
private:
#if !defined(OS_MACOSX)
FRIEND_TEST_ALL_PREFIXES(MemoryCoordinatorImplBrowserTest, HandleAdded);
- FRIEND_TEST_ALL_PREFIXES(MemoryCoordinatorImplBrowserTest,
- CanSuspendRenderer);
- FRIEND_TEST_ALL_PREFIXES(MemoryCoordinatorWithServiceWorkerTest,
- CannotSuspendRendererWithServiceWorker);
#endif
FRIEND_TEST_ALL_PREFIXES(MemoryCoordinatorImplTest, OnChildVisibilityChanged);
FRIEND_TEST_ALL_PREFIXES(MemoryCoordinatorImplTest, CalculateNextCondition);
« no previous file with comments | « chrome/browser/memory/chrome_memory_coordinator_delegate.cc ('k') | content/browser/memory/memory_coordinator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698