| 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(
|
|
|