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

Unified Diff: components/view_manager/window_manager_access_policy.cc

Issue 1138073007: Nukes the windowmanager interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 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
« no previous file with comments | « components/view_manager/view_manager_service_unittest.cc ('k') | components/window_manager/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/view_manager/window_manager_access_policy.cc
diff --git a/components/view_manager/window_manager_access_policy.cc b/components/view_manager/window_manager_access_policy.cc
index 280a73ca6a80adb659cbd0209bf4ff08a3a49a23..8581e5a22db25fc51186b0d0dcab5dff3b13f6c7 100644
--- a/components/view_manager/window_manager_access_policy.cc
+++ b/components/view_manager/window_manager_access_policy.cc
@@ -57,7 +57,9 @@ bool WindowManagerAccessPolicy::CanEmbed(const ServerView* view) const {
bool WindowManagerAccessPolicy::CanChangeViewVisibility(
const ServerView* view) const {
- return view->id().connection_id == connection_id_;
+ // The WindowManager can change the visibility of the root too.
+ return view->id().connection_id == connection_id_ ||
+ view->id() == RootViewId();
}
bool WindowManagerAccessPolicy::CanSetViewSurfaceId(
« no previous file with comments | « components/view_manager/view_manager_service_unittest.cc ('k') | components/window_manager/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698