summaryrefslogtreecommitdiffstats
path: root/views/window/window_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/window/window_gtk.cc')
-rw-r--r--views/window/window_gtk.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/window/window_gtk.cc b/views/window/window_gtk.cc
index d0ba7bc..1a5147f 100644
--- a/views/window/window_gtk.cc
+++ b/views/window/window_gtk.cc
@@ -377,7 +377,8 @@ WindowGtk::WindowGtk(WindowDelegate* window_delegate)
window_state_(GDK_WINDOW_STATE_WITHDRAWN),
window_closed_(false) {
is_window_ = true;
- window_delegate_->window_.reset(this);
+ DCHECK(!window_delegate_->window_);
+ window_delegate_->window_ = this;
}
void WindowGtk::Init(GtkWindow* parent, const gfx::Rect& bounds) {