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

Unified Diff: services/ui/service.cc

Issue 2589253002: Remove discardable_memory::DSMM::{Create,Get}Instance() (Closed)
Patch Set: Fix trybot Created 4 years 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 | « services/ui/service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/service.cc
diff --git a/services/ui/service.cc b/services/ui/service.cc
index 66490be2d8d3f32bc556db02a27327ed42c17a6f..7139d26f9c95778cbc29b619f33c557ddf73650b 100644
--- a/services/ui/service.cc
+++ b/services/ui/service.cc
@@ -199,7 +199,8 @@ void Service::OnStart() {
ime_server_.Init(context()->connector(), test_config_);
- discardable_memory::DiscardableSharedMemoryManager::CreateInstance();
+ discardable_shared_memory_manager_ =
+ base::MakeUnique<discardable_memory::DiscardableSharedMemoryManager>();
}
bool Service::OnConnect(const service_manager::ServiceInfo& remote_info,
@@ -368,8 +369,7 @@ void Service::Create(const service_manager::Identity& remote_identity,
void Service::Create(
const service_manager::Identity& remote_identity,
discardable_memory::mojom::DiscardableSharedMemoryManagerRequest request) {
- discardable_memory::DiscardableSharedMemoryManager::GetInstance()->Bind(
- std::move(request));
+ discardable_shared_memory_manager_->Bind(std::move(request));
}
void Service::Create(const service_manager::Identity& remote_identity,
« no previous file with comments | « services/ui/service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698