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

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

Issue 2018823002: Eliminate WindowTreeConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@connection
Patch Set: . Created 4 years, 7 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/public/cpp/lib/in_flight_change.cc ('k') | components/mus/public/cpp/lib/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/scoped_window_ptr.cc
diff --git a/components/mus/public/cpp/lib/scoped_window_ptr.cc b/components/mus/public/cpp/lib/scoped_window_ptr.cc
index 1c7e1f4998d97e5bc62d41d173bb888cef852588..360da1ff4b591f34077325572f0e195d1541814d 100644
--- a/components/mus/public/cpp/lib/scoped_window_ptr.cc
+++ b/components/mus/public/cpp/lib/scoped_window_ptr.cc
@@ -6,7 +6,7 @@
#include "components/mus/public/cpp/window.h"
#include "components/mus/public/cpp/window_observer.h"
-#include "components/mus/public/cpp/window_tree_connection.h"
+#include "components/mus/public/cpp/window_tree_client.h"
namespace mus {
@@ -22,8 +22,8 @@ ScopedWindowPtr::~ScopedWindowPtr() {
// static
void ScopedWindowPtr::DeleteWindowOrWindowManager(Window* window) {
- if (window->connection()->GetRoots().count(window) > 0)
- delete window->connection();
+ if (window->window_tree()->GetRoots().count(window) > 0)
+ delete window->window_tree();
else
window->Destroy();
}
« no previous file with comments | « components/mus/public/cpp/lib/in_flight_change.cc ('k') | components/mus/public/cpp/lib/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698