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

Unified Diff: components/mus/default_access_policy.cc

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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/mus/default_access_policy.h ('k') | components/mus/display_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « components/mus/default_access_policy.h ('k') | components/mus/display_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698