Index: mojo/services/view_manager/default_access_policy.cc |
diff --git a/mojo/services/view_manager/default_access_policy.cc b/mojo/services/view_manager/default_access_policy.cc |
index 525e76eb6a096bb5ff21e5a3b40e550cbf3f31f9..a2443c3d432e7df0fc31fa34c029e11e19a11c73 100644 |
--- a/mojo/services/view_manager/default_access_policy.cc |
+++ b/mojo/services/view_manager/default_access_policy.cc |
@@ -66,9 +66,9 @@ bool DefaultAccessPolicy::CanChangeViewVisibility( |
return WasCreatedByThisConnection(view) || IsViewInRoots(view); |
} |
-bool DefaultAccessPolicy::CanSetViewContents(const ServerView* view) const { |
+bool DefaultAccessPolicy::CanSetViewSurfaceId(const ServerView* view) const { |
// Once a view embeds another app, the embedder app is no longer able to |
- // call SetViewContents() - this ability is transferred to the embedded app. |
+ // call SetViewSurfaceId() - this ability is transferred to the embedded app. |
if (delegate_->IsViewRootOfAnotherConnectionForAccessPolicy(view)) |
return false; |
return WasCreatedByThisConnection(view) || IsViewInRoots(view); |