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

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

Issue 2867213004: [Mojo Video Capture] Hook up video capture service behind a feature flag (Closed)
Patch Set: Fix mojo::MakeRequest(&device) happening after base::Passed(&device). Created 3 years, 7 months 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 eeb813967f87603be8ade337d8b31273a35f2067..c57ed80c71934a1c0616f206e2e496fe6468a057 100644
--- a/content/browser/service_manager/service_manager_context.cc
+++ b/content/browser/service_manager/service_manager_context.cc
@@ -49,6 +49,7 @@
#include "services/service_manager/runner/common/client_util.h"
#include "services/service_manager/service_manager.h"
#include "services/shape_detection/public/interfaces/constants.mojom.h"
+#include "services/video_capture/public/interfaces/constants.mojom.h"
namespace content {
@@ -343,6 +344,9 @@ ServiceManagerContext::ServiceManagerContext() {
std::make_pair(content::mojom::kNetworkServiceName,
base::ASCIIToUTF16("Network Service")));
}
+ unsandboxed_services.insert(
mcasas 2017/05/10 02:33:33 Shouldn't we have a command line check like in l.3
chfremer 2017/05/10 17:59:40 You are right. Unless the feature is enabled, we d
+ std::make_pair(video_capture::mojom::kServiceName,
+ base::ASCIIToUTF16("Video Capture Service")));
for (const auto& service : unsandboxed_services) {
packaged_services_connection_->AddServiceRequestHandler(

Powered by Google App Engine
This is Rietveld 408576698