Index: ui/views/widget/root_view.cc |
diff --git a/ui/views/widget/root_view.cc b/ui/views/widget/root_view.cc |
index 8a4f053954eba74167a664c6649411f2fc6c41d6..dd2ebf521af8d0382f8be8f5dd660e24ae6c09fc 100644 |
--- a/ui/views/widget/root_view.cc |
+++ b/ui/views/widget/root_view.cc |
@@ -31,11 +31,11 @@ RootView::~RootView() { |
//////////////////////////////////////////////////////////////////////////////// |
// RootView, View overrides: |
-void RootView::OnViewRemoved(View* parent, View* child) { |
- if (child == mouse_pressed_handler_) |
+void RootView::OnViewRemoved(const View& parent, const View& child) { |
+ if (&child == mouse_pressed_handler_) |
mouse_pressed_handler_ = NULL; |
- GetFocusManager()->RemoveView(child); |
+ GetFocusManager()->RemoveView(&child); |
} |
bool RootView::OnKeyPressed(const KeyEvent& event) { |