| Index: components/mus/public/cpp/lib/window.cc
|
| diff --git a/components/mus/public/cpp/lib/window.cc b/components/mus/public/cpp/lib/window.cc
|
| index 0fe9dbbebcb143ae1914a73ff6e1a6cf980788fc..d9a45ae2e9a3dee66497acf9ff7567b110c32437 100644
|
| --- a/components/mus/public/cpp/lib/window.cc
|
| +++ b/components/mus/public/cpp/lib/window.cc
|
| @@ -316,14 +316,14 @@ void Window::MoveToBack() {
|
| Reorder(parent_->children_.front(), mojom::OrderDirection::BELOW);
|
| }
|
|
|
| -bool Window::Contains(Window* child) const {
|
| +bool Window::Contains(const Window* child) const {
|
| if (!child)
|
| return false;
|
| if (child == this)
|
| return true;
|
| if (connection_)
|
| - CHECK_EQ(child->connection(), connection_);
|
| - for (Window* p = child->parent(); p; p = p->parent()) {
|
| + CHECK_EQ(child->connection_, connection_);
|
| + for (const Window* p = child->parent(); p; p = p->parent()) {
|
| if (p == this)
|
| return true;
|
| }
|
|
|