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

Unified Diff: content/browser/permissions/permission_service_context.cc

Issue 1513973002: PermissionServiceContext using mojo::StrongBindingSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-geolocation-untangle
Patch Set: Created 5 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
Index: content/browser/permissions/permission_service_context.cc
diff --git a/content/browser/permissions/permission_service_context.cc b/content/browser/permissions/permission_service_context.cc
index ec8c386b03fc91c35f53b6797c1d74e5b1e5992a..cdef03604fc5bc63a6ce43adbe09bcf819c71a4a 100644
--- a/content/browser/permissions/permission_service_context.cc
+++ b/content/browser/permissions/permission_service_context.cc
@@ -31,14 +31,7 @@ PermissionServiceContext::~PermissionServiceContext() {
void PermissionServiceContext::CreateService(
mojo::InterfaceRequest<PermissionService> request) {
- services_.push_back(new PermissionServiceImpl(this, request.Pass()));
-}
-
-void PermissionServiceContext::ServiceHadConnectionError(
- PermissionServiceImpl* service) {
- auto it = std::find(services_.begin(), services_.end(), service);
- DCHECK(it != services_.end());
- services_.erase(it);
+ services_.EmplaceService(std::move(request), this);
}
void PermissionServiceContext::RenderFrameHostChanged(
« no previous file with comments | « content/browser/permissions/permission_service_context.h ('k') | content/browser/permissions/permission_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698