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

Unified Diff: ui/aura/mus/window_tree_client.cc

Issue 2692863007: Add a DCHECK to ensure that WindowTreeClient has a delegate (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index 9b2079e04c3f9815082525dd3e330329c8c5f627..5aaacb352cc0afb0b638543dd3eff4aee23c8792 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -178,6 +178,7 @@ WindowTreeClient::WindowTreeClient(
tree_(nullptr),
in_destructor_(false),
weak_factory_(this) {
+ DCHECK(delegate_);
tonikitoo 2017/02/17 17:10:28 alternatively, we could make 'delegate_' a referen
// Allow for a null request in tests.
if (request.is_pending())
binding_.Bind(std::move(request));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698