diff options
author | glotov@google.com <glotov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-31 16:21:52 +0000 |
---|---|---|
committer | glotov@google.com <glotov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-31 16:21:52 +0000 |
commit | 1657aef1fe153a50d77859159e48efb5e3a64fbe (patch) | |
tree | 1ded2af188e0e8094ccdc6b43782b7ee6f763f1d /views | |
parent | d41d6a11ac1f256ed1daa9efc0716bdda2bcb198 (diff) | |
download | chromium_src-1657aef1fe153a50d77859159e48efb5e3a64fbe.zip chromium_src-1657aef1fe153a50d77859159e48efb5e3a64fbe.tar.gz chromium_src-1657aef1fe153a50d77859159e48efb5e3a64fbe.tar.bz2 |
Reverting explicit RemoveObserver in dtor of WidgetGtk
This is a revert of http://codereview.chromium.org/6932034.
It is no longer needed after NativeWidgetGtk deletes itself immediately, not using DeleteSoon(): crosbug.com/15129.
BUG=chromium-os:14885
TEST=Sign in as a new user, sign out works fine.
Review URL: http://codereview.chromium.org/7054039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87310 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/widget/native_widget_gtk.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/views/widget/native_widget_gtk.cc b/views/widget/native_widget_gtk.cc index 186f8ef..c37ecf2 100644 --- a/views/widget/native_widget_gtk.cc +++ b/views/widget/native_widget_gtk.cc @@ -335,9 +335,6 @@ NativeWidgetGtk::~NativeWidgetGtk() { input_method_.reset(); if (ownership_ == Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET) delete delegate_; - // TODO(altimofeev): investigate why OnDestroy could not be called. - if (!child_) - ActiveWindowWatcherX::RemoveObserver(this); } GtkWindow* NativeWidgetGtk::GetTransientParent() const { |