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

Unified Diff: views/widget/widget.cc

Issue 7745049: Reverts debugging code added for 91396. I've tracked down the bug and (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « views/widget/widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget.cc
diff --git a/views/widget/widget.cc b/views/widget/widget.cc
index 7a42923d6fc6aee1feef095bd245d0d6b8b208b4..83401991184d0e0fd116b8e12c79733b81c71bfc 100644
--- a/views/widget/widget.cc
+++ b/views/widget/widget.cc
@@ -153,13 +153,10 @@ Widget::Widget()
saved_maximized_state_(false),
minimum_size_(100, 100),
focus_on_creation_(true),
- is_top_level_(false),
- destroy_state_(DESTROY_STATE_NONE) {
+ is_top_level_(false) {
}
Widget::~Widget() {
- destroy_state_ = DESTROY_STATE_DELETED;
-
while (!event_stack_.empty()) {
event_stack_.top()->reset();
event_stack_.pop();
@@ -865,17 +862,12 @@ void Widget::OnNativeWidgetCreated() {
void Widget::OnNativeWidgetDestroying() {
FOR_EACH_OBSERVER(Observer, observers_, OnWidgetClosing(this));
- if (destroy_state_ == DESTROY_STATE_NONE)
- destroy_state_ = DESTROY_STATE_IN_DESTROYING;
if (non_client_view_)
non_client_view_->WindowClosing();
widget_delegate_->WindowClosing();
}
void Widget::OnNativeWidgetDestroyed() {
- if (destroy_state_ == DESTROY_STATE_IN_DESTROYING ||
- destroy_state_ == DESTROY_STATE_NONE)
- destroy_state_ = DESTROY_STATE_DESTROYED;
widget_delegate_->DeleteDelegate();
widget_delegate_ = NULL;
}
« no previous file with comments | « views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698