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

Unified Diff: mojo/services/view_manager/window_manager_access_policy.cc

Issue 699173003: Makes ViewManagerServiceImpl track a single root (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: comment Created 6 years, 1 month 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 | « mojo/services/view_manager/view_manager_service_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/window_manager_access_policy.cc
diff --git a/mojo/services/view_manager/window_manager_access_policy.cc b/mojo/services/view_manager/window_manager_access_policy.cc
index 47f4c3a9bea1fd4191907711689d41ab59ec3498..8a477f064d4b5c71ecf7029f874157f1fce3f59e 100644
--- a/mojo/services/view_manager/window_manager_access_policy.cc
+++ b/mojo/services/view_manager/window_manager_access_policy.cc
@@ -66,8 +66,7 @@ bool WindowManagerAccessPolicy::CanSetViewSurfaceId(
if (delegate_->IsViewRootOfAnotherConnectionForAccessPolicy(view))
return false;
return view->id().connection_id == connection_id_ ||
- (delegate_->GetRootsForAccessPolicy().count(
- ViewIdToTransportId(view->id())) > 0);
+ (delegate_->IsRootForAccessPolicy(view->id()));
}
bool WindowManagerAccessPolicy::CanSetViewBounds(const ServerView* view) const {
« no previous file with comments | « mojo/services/view_manager/view_manager_service_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698