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

Unified Diff: ui/views/mus/window_manager_connection.cc

Issue 2168733002: Splits debug_commands into aura and non-aura parts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 5 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
Index: ui/views/mus/window_manager_connection.cc
diff --git a/ui/views/mus/window_manager_connection.cc b/ui/views/mus/window_manager_connection.cc
index 237b5b92619fa59e37db8e905b5b7dbdb7d4bcfe..ba6ee9491ad8dc71e4869f11f7379bc1d54bf526 100644
--- a/ui/views/mus/window_manager_connection.cc
+++ b/ui/views/mus/window_manager_connection.cc
@@ -36,6 +36,20 @@ base::LazyInstance<WindowManagerConnectionPtr>::Leaky lazy_tls_ptr =
} // namespace
+WindowManagerConnection::~WindowManagerConnection() {
+ // ~WindowTreeClient calls back to us (we're its delegate), destroy it while
+ // we are still valid.
+ client_.reset();
+ ui::Clipboard::DestroyClipboardForCurrentThread();
+ ui::GpuService::Terminate();
+ lazy_tls_ptr.Pointer()->Set(nullptr);
+
+ if (ViewsDelegate::GetInstance()) {
+ ViewsDelegate::GetInstance()->set_native_widget_factory(
+ ViewsDelegate::NativeWidgetFactory());
+ }
+}
+
// static
std::unique_ptr<WindowManagerConnection> WindowManagerConnection::Create(
shell::Connector* connector,
@@ -156,20 +170,6 @@ WindowManagerConnection::WindowManagerConnection(
std::map<std::string, std::vector<uint8_t>>()));
}
-WindowManagerConnection::~WindowManagerConnection() {
- // ~WindowTreeClient calls back to us (we're its delegate), destroy it while
- // we are still valid.
- client_.reset();
- ui::Clipboard::DestroyClipboardForCurrentThread();
- ui::GpuService::Terminate();
- lazy_tls_ptr.Pointer()->Set(nullptr);
-
- if (ViewsDelegate::GetInstance()) {
- ViewsDelegate::GetInstance()->set_native_widget_factory(
- ViewsDelegate::NativeWidgetFactory());
- }
-}
-
bool WindowManagerConnection::HasPointerDownWatcher() {
// Check to see if we really have any observers left. This doesn't use
// base::ObserverList<>::might_have_observers() because that returns true
« ash/accelerators/debug_commands.cc ('K') | « ui/views/mus/window_manager_connection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698