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

Unified Diff: content/browser/service_manager/service_manager_context.cc

Issue 2562393005: [Chromecast] Reference internal services manifest. (Closed)
Patch Set: Fix CastContentClient header 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
Index: content/browser/service_manager/service_manager_context.cc
diff --git a/content/browser/service_manager/service_manager_context.cc b/content/browser/service_manager/service_manager_context.cc
index a76a59f9850efecf8e1e813e7cd8dfd1d1ad6c46..0c00e4e124ff78a72630d304e44e44b50af0f2dd 100644
--- a/content/browser/service_manager/service_manager_context.cc
+++ b/content/browser/service_manager/service_manager_context.cc
@@ -22,6 +22,7 @@
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/utility_process_host.h"
#include "content/public/browser/utility_process_host_client.h"
+#include "content/public/common/connection_filter.h"
#include "content/public/common/content_client.h"
#include "content/public/common/service_manager_connection.h"
#include "content/public/common/service_names.mojom.h"
@@ -275,6 +276,13 @@ ServiceManagerContext::ServiceManagerContext() {
entry.second);
}
+ ContentBrowserClient::ConnectionFilterList connection_filter_list;
+ GetContentClient()->browser()->AddConnectionFilters(&connection_filter_list);
+ for (auto& filter : connection_filter_list) {
+ ServiceManagerConnection::GetForProcess()->AddConnectionFilter(
+ std::move(filter));
+ }
+
// This is safe to assign directly from any thread, because
// ServiceManagerContext must be constructed before anyone can call
// GetConnectorForIOThread().

Powered by Google App Engine
This is Rietveld 408576698