Index: ui/aura/window.cc |
diff --git a/ui/aura/window.cc b/ui/aura/window.cc |
index d125da17555e99eff9576441feca48955bd0b5ab..c981c85535bb4cd475561c9a8607606b6fd30d87 100644 |
--- a/ui/aura/window.cc |
+++ b/ui/aura/window.cc |
@@ -66,7 +66,11 @@ Window::Window(WindowDelegate* delegate) |
id_(-1), |
transparent_(false), |
user_data_(NULL), |
- ignore_events_(false) { |
+ ignore_events_(false), |
+ // Don't notify newly added observers during notification. This causes |
+ // problems for code that adds an observer as part of an observer |
+ // notification (such as the workspace code). |
+ observers_(ObserverList<WindowObserver>::NOTIFY_EXISTING_ONLY) { |
} |
Window::~Window() { |