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

Unified Diff: ui/aura/test/env_test_helper.h

Issue 2897663002: chromeos: makes it possible for windows to outlive WindowTreeClient (Closed)
Patch Set: cleanup Created 3 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/aura/test/aura_test_helper.cc ('k') | ui/aura/window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/env_test_helper.h
diff --git a/ui/aura/test/env_test_helper.h b/ui/aura/test/env_test_helper.h
index 3f7ee728f2cdcf9676be14f3ba4bc8e550a3804a..4ea50206cf0f642e198edb5bf385c02e0d718f89 100644
--- a/ui/aura/test/env_test_helper.h
+++ b/ui/aura/test/env_test_helper.h
@@ -42,6 +42,7 @@ class EnvTestHelper {
// only be used for tests where Env is long lived.
void SetWindowTreeClient(WindowTreeClient* window_tree_client) {
env_->window_tree_client_ = window_tree_client;
+ env_->in_mus_shutdown_ = window_tree_client ? false : true;
}
void SetAlwaysUseLastMouseLocation(bool value) {
« no previous file with comments | « ui/aura/test/aura_test_helper.cc ('k') | ui/aura/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698