Index: services/ui/ws/window_manager_access_policy.cc |
diff --git a/services/ui/ws/window_manager_access_policy.cc b/services/ui/ws/window_manager_access_policy.cc |
index 37b3e1df74d653c600bbe40fd386b1d7574103fc..862402749d174b489d9a7377b075af4ade2ca352 100644 |
--- a/services/ui/ws/window_manager_access_policy.cc |
+++ b/services/ui/ws/window_manager_access_policy.cc |
@@ -87,14 +87,7 @@ bool WindowManagerAccessPolicy::CanChangeWindowOpacity( |
} |
bool WindowManagerAccessPolicy::CanSetWindowCompositorFrameSink( |
- const ServerWindow* window, |
- ui::mojom::CompositorFrameSinkType compositor_frame_sink_type) const { |
- // Allow the window manager to always provide the underlay. This is important |
- // when the window manager is asked to paint the title area to windows it did |
- // not create. |
- if (compositor_frame_sink_type == mojom::CompositorFrameSinkType::UNDERLAY) |
- return true; |
- |
+ const ServerWindow* window) const { |
if (delegate_->IsWindowRootOfAnotherTreeForAccessPolicy(window)) |
return false; |