Index: components/mus/default_access_policy.cc |
diff --git a/components/view_manager/default_access_policy.cc b/components/mus/default_access_policy.cc |
similarity index 91% |
rename from components/view_manager/default_access_policy.cc |
rename to components/mus/default_access_policy.cc |
index 59fffc191b5d0ec6f943e22ffc92997db7c252e5..afa4fd2978e237ec2ef92873fd067f68ba553f77 100644 |
--- a/components/view_manager/default_access_policy.cc |
+++ b/components/mus/default_access_policy.cc |
@@ -2,21 +2,19 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "components/view_manager/default_access_policy.h" |
+#include "components/mus/default_access_policy.h" |
-#include "components/view_manager/access_policy_delegate.h" |
-#include "components/view_manager/server_view.h" |
+#include "components/mus/access_policy_delegate.h" |
+#include "components/mus/server_view.h" |
namespace view_manager { |
DefaultAccessPolicy::DefaultAccessPolicy( |
mojo::ConnectionSpecificId connection_id, |
AccessPolicyDelegate* delegate) |
- : connection_id_(connection_id), delegate_(delegate) { |
-} |
+ : connection_id_(connection_id), delegate_(delegate) {} |
-DefaultAccessPolicy::~DefaultAccessPolicy() { |
-} |
+DefaultAccessPolicy::~DefaultAccessPolicy() {} |
bool DefaultAccessPolicy::CanRemoveViewFromParent( |
const ServerView* view) const { |
@@ -62,9 +60,9 @@ bool DefaultAccessPolicy::CanDescendIntoViewForViewTree( |
bool DefaultAccessPolicy::CanEmbed(const ServerView* view) const { |
return WasCreatedByThisConnection(view) || |
- (delegate_->IsViewKnownForAccessPolicy(view) && |
- IsDescendantOfEmbedRoot(view) && |
- !delegate_->IsRootForAccessPolicy(view->id())); |
+ (delegate_->IsViewKnownForAccessPolicy(view) && |
+ IsDescendantOfEmbedRoot(view) && |
+ !delegate_->IsRootForAccessPolicy(view->id())); |
} |
bool DefaultAccessPolicy::CanChangeViewVisibility( |