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

Unified Diff: ui/aura/window.cc

Issue 309573004: aura: Reland r266681 to debug WindowObserver crashes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index b270f36544e4515ea805ce7181b7ff63ae4f9d02..b1e95c3f4739743c33a2f1858dcb716746dde5ce 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -644,10 +644,12 @@ gfx::NativeCursor Window::GetCursor(const gfx::Point& point) const {
}
void Window::AddObserver(WindowObserver* observer) {
+ observer->OnObservingWindow(this);
observers_.AddObserver(observer);
}
void Window::RemoveObserver(WindowObserver* observer) {
+ observer->OnUnobservingWindow(this);
observers_.RemoveObserver(observer);
}
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/window_observer.h » ('j') | ui/aura/window_observer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698