Index: content/browser/mojo/renderer_capability_filter.cc |
diff --git a/content/browser/mojo/renderer_capability_filter.cc b/content/browser/mojo/renderer_capability_filter.cc |
index d2f362e5d3a79f503114131a9b5258a2aeef2154..c08f5e984ea768377d8da3d71b8c19011e6d5286 100644 |
--- a/content/browser/mojo/renderer_capability_filter.cc |
+++ b/content/browser/mojo/renderer_capability_filter.cc |
@@ -4,9 +4,12 @@ |
#include <utility> |
-#include "components/mus/public/interfaces/gpu.mojom.h" |
#include "content/browser/mojo/mojo_shell_client_host.h" |
+#if defined(MOJO_SHELL_CLIENT) |
+#include "components/mus/public/interfaces/gpu.mojom.h" |
+#endif |
+ |
namespace content { |
mojo::shell::mojom::CapabilityFilterPtr CreateCapabilityFilterForRenderer() { |
@@ -14,9 +17,12 @@ mojo::shell::mojom::CapabilityFilterPtr CreateCapabilityFilterForRenderer() { |
// think about when changing it. |
mojo::shell::mojom::CapabilityFilterPtr filter( |
mojo::shell::mojom::CapabilityFilter::New()); |
+ filter->filter.SetToEmpty(); |
+#if defined(MOJO_SHELL_CLIENT) |
mojo::Array<mojo::String> window_manager_interfaces; |
window_manager_interfaces.push_back(mus::mojom::Gpu::Name_); |
filter->filter.insert("mojo:mus", std::move(window_manager_interfaces)); |
+#endif |
return filter; |
} |