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

Unified Diff: services/service_manager/public/cpp/lib/interface_registry.cc

Issue 2476063002: Service Manager: Rework Service and ServiceContext lifetime (Closed)
Patch Set: . Created 4 years, 1 month 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: services/service_manager/public/cpp/lib/interface_registry.cc
diff --git a/services/service_manager/public/cpp/lib/interface_registry.cc b/services/service_manager/public/cpp/lib/interface_registry.cc
index 0eff1e9545fba79dd65e2dfcae2dde2e7a2154a4..039b86679c66b6d5894f2a25aeb618cb33b9c051 100644
--- a/services/service_manager/public/cpp/lib/interface_registry.cc
+++ b/services/service_manager/public/cpp/lib/interface_registry.cc
@@ -250,7 +250,8 @@ void InterfaceRegistry::RebuildExposedInterfaces() {
}
void InterfaceRegistry::OnConnectionError() {
- for (const auto& closure : connection_lost_closures_)
+ std::list<base::Closure> closures = connection_lost_closures_;
+ for (const auto& closure : closures)
closure.Run();
}
« no previous file with comments | « services/service_manager/public/cpp/interface_registry.h ('k') | services/service_manager/public/cpp/lib/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698