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

Unified Diff: ui/aura/window_observer.cc

Issue 101013002: Make sure WindowObservers are removed from window before destruction (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cc Created 7 years 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
Index: ui/aura/window_observer.cc
diff --git a/ui/aura/input_state_lookup.cc b/ui/aura/window_observer.cc
similarity index 54%
copy from ui/aura/input_state_lookup.cc
copy to ui/aura/window_observer.cc
index 86ab3cd6587a009e063097c93533125882418aa5..d11a3f65244955f8c57bd9b697c3ffcf732ec213 100644
--- a/ui/aura/input_state_lookup.cc
+++ b/ui/aura/window_observer.cc
@@ -2,15 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ui/aura/input_state_lookup.h"
+#include "ui/aura/window_observer.h"
-#include "base/logging.h"
+#include "ui/aura/window.h"
namespace aura {
-// static
-scoped_ptr<InputStateLookup> InputStateLookup::Create() {
- return scoped_ptr<InputStateLookup>();
+void WindowObserver::OnWindowDestroyed(Window* window) {
+ window->RemoveObserver(this);
}
} // namespace aura

Powered by Google App Engine
This is Rietveld 408576698