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

Unified Diff: components/memory_coordinator/browser/memory_coordinator.cc

Issue 2286583002: Make cc::SoftwareImageDecodeController, cc::ResourcePool, and cc::StagingBufferPoo… (Closed)
Patch Set: Fixed windows build failure Created 4 years, 3 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: components/memory_coordinator/browser/memory_coordinator.cc
diff --git a/components/memory_coordinator/browser/memory_coordinator.cc b/components/memory_coordinator/browser/memory_coordinator.cc
index 6caab3d39fc6d01be9ab4c40adda7523cd9d69de..8afc282c6de92bc8e6a3193557b24a3252ed8f33 100644
--- a/components/memory_coordinator/browser/memory_coordinator.cc
+++ b/components/memory_coordinator/browser/memory_coordinator.cc
@@ -40,9 +40,13 @@ MemoryCoordinator* MemoryCoordinator::GetInstance() {
base::LeakySingletonTraits<MemoryCoordinator>>::get();
}
-MemoryCoordinator::MemoryCoordinator() {}
+MemoryCoordinator::MemoryCoordinator() {
+ ClientRegistry::SetInstance(this);
+}
-MemoryCoordinator::~MemoryCoordinator() {}
+MemoryCoordinator::~MemoryCoordinator() {
+ ClientRegistry::SetInstance(nullptr);
+}
void MemoryCoordinator::CreateHandle(
int render_process_id,

Powered by Google App Engine
This is Rietveld 408576698