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

Unified Diff: components/mus/public/cpp/lib/window.cc

Issue 1462123002: views/mus: Set-up transient windows correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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
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 e2ac0c8f4a1b7f2170bfef8076aee75a21d7f44e..e953ba8fb7809c3502a8508d7aff9d3c4d8d282e 100644
--- a/components/mus/public/cpp/lib/window.cc
+++ b/components/mus/public/cpp/lib/window.cc
@@ -270,16 +270,12 @@ void Window::RemoveChild(Window* child) {
}
void Window::AddTransientWindow(Window* transient_window) {
- if (connection_)
- CHECK_EQ(transient_window->connection(), connection_);
LocalAddTransientWindow(transient_window);
if (connection_)
tree_client()->AddTransientWindow(this, transient_window->id());
}
void Window::RemoveTransientWindow(Window* transient_window) {
- if (connection_)
- CHECK_EQ(transient_window->connection(), connection_);
LocalRemoveTransientWindow(transient_window);
if (connection_)
tree_client()->RemoveTransientWindowFromParent(transient_window);
« no previous file with comments | « no previous file | components/mus/public/cpp/tests/window_unittest.cc » ('j') | components/mus/ws/default_access_policy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698