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

Unified Diff: services/ui/ws/default_access_policy.cc

Issue 2617403003: Mus: Remove CompositorFrameSinkType (Closed)
Patch Set: Fix some unit tests Created 3 years, 11 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
« no previous file with comments | « services/ui/ws/default_access_policy.h ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/default_access_policy.cc
diff --git a/services/ui/ws/default_access_policy.cc b/services/ui/ws/default_access_policy.cc
index 42fc49716ffbeb7a326dfd042c3f42b7722527b4..0acee434e1f5f47e05f9f8e971637d7386a2bbcd 100644
--- a/services/ui/ws/default_access_policy.cc
+++ b/services/ui/ws/default_access_policy.cc
@@ -100,11 +100,7 @@ bool DefaultAccessPolicy::CanChangeWindowOpacity(
}
bool DefaultAccessPolicy::CanSetWindowCompositorFrameSink(
- const ServerWindow* window,
- mojom::CompositorFrameSinkType compositor_frame_sink_type) const {
- if (compositor_frame_sink_type == mojom::CompositorFrameSinkType::UNDERLAY)
- return WasCreatedByThisClient(window);
-
+ const ServerWindow* window) const {
// Once a window embeds another app, the embedder app is no longer able to
// call SetWindowSurfaceId() - this ability is transferred to the embedded
// app.
« no previous file with comments | « services/ui/ws/default_access_policy.h ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698