Index: mojo/services/window_manager/view_event_dispatcher.h |
diff --git a/mojo/services/window_manager/view_event_dispatcher.h b/mojo/services/window_manager/view_event_dispatcher.h |
index 9987b6592192dc7df508341780269a929057eba6..4f154af211b5e286956835dc0adc88caab8dabe8 100644 |
--- a/mojo/services/window_manager/view_event_dispatcher.h |
+++ b/mojo/services/window_manager/view_event_dispatcher.h |
@@ -32,8 +32,9 @@ class ViewEventDispatcher : public ui::EventProcessor { |
ui::EventDispatchDetails PostDispatchEvent( |
ui::EventTarget* target, const ui::Event& event) override; |
- // We own the root of the shadow tree which mirrors the mojo::View* tree. |
- scoped_ptr<ViewTarget> root_view_target_; |
+ // We keep a weak reference to ViewTarget*, which corresponds to the root of |
+ // the mojo::View tree. |
+ ViewTarget* root_view_target_; |
ViewTarget* event_dispatch_target_; |
ViewTarget* old_dispatch_target_; |