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

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

Issue 2023933002: views/mus: Recreate WindowManagerConnection for each test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot-merge 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 | « ui/views/mus/views_mus_test_suite.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9954f9ea3dd890a9473fbfd70bf91b1945157539..d9a32889c151d013bede8ddf4da5068a93cc45fd 100644
--- a/ui/views/mus/window_manager_connection.cc
+++ b/ui/views/mus/window_manager_connection.cc
@@ -129,6 +129,11 @@ WindowManagerConnection::~WindowManagerConnection() {
client_.reset();
if (created_device_data_manager_)
ui::DeviceDataManager::DeleteInstance();
+
+ if (ViewsDelegate::GetInstance()) {
+ ViewsDelegate::GetInstance()->set_native_widget_factory(
+ ViewsDelegate::NativeWidgetFactory());
+ }
}
bool WindowManagerConnection::HasPointerWatcher() {
« no previous file with comments | « ui/views/mus/views_mus_test_suite.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698