| Index: components/memory_coordinator/common/client_registry.cc
|
| diff --git a/components/memory_coordinator/common/client_registry.cc b/components/memory_coordinator/common/client_registry.cc
|
| index 57866c880d774fbfccf2638c484d3d64e3209989..9d5bbb4bf0cefe2704f2c401ec19b89b42974b20 100644
|
| --- a/components/memory_coordinator/common/client_registry.cc
|
| +++ b/components/memory_coordinator/common/client_registry.cc
|
| @@ -6,6 +6,8 @@
|
|
|
| namespace memory_coordinator {
|
|
|
| +ClientRegistry* ClientRegistry::instance_ = nullptr;
|
| +
|
| ClientRegistry::ClientRegistry() : clients_(new ClientList) {}
|
|
|
| ClientRegistry::~ClientRegistry() {}
|
| @@ -18,4 +20,12 @@ void ClientRegistry::UnregisterClient(MemoryCoordinatorClient* client) {
|
| clients_->RemoveObserver(client);
|
| }
|
|
|
| +ClientRegistry* ClientRegistry::GetInstance() {
|
| + return instance_;
|
| +}
|
| +
|
| +void ClientRegistry::SetInstance(ClientRegistry* instance) {
|
| + instance_ = instance;
|
| +}
|
| +
|
| } // namespace memory_coordinator
|
|
|