Index: ui/aura/window.cc |
diff --git a/ui/aura/window.cc b/ui/aura/window.cc |
index 6ff6c762a6cea14f20cd3ba7ceddba6f4863e2d8..61ada5ebaefbd8a8f5c0d38d66db39c835ee2e5a 100644 |
--- a/ui/aura/window.cc |
+++ b/ui/aura/window.cc |
@@ -93,7 +93,7 @@ Window::Window(WindowDelegate* delegate) |
// problems for code that adds an observer as part of an observer |
// notification (such as the workspace code). |
observers_(base::ObserverList<WindowObserver>::NOTIFY_EXISTING_ONLY) { |
- set_target_handler(delegate_); |
+ ignore_result(SetTargetHandler(delegate_)); |
} |
Window::~Window() { |
@@ -109,7 +109,7 @@ Window::~Window() { |
// While we are being destroyed, our target handler may also be in the |
// process of destruction or already destroyed, so do not forward any |
// input events at the ui::EP_TARGET phase. |
- set_target_handler(nullptr); |
+ ignore_result(SetTargetHandler(nullptr)); |
// TODO(beng): See comment in window_event_dispatcher.h. This shouldn't be |
// necessary but unfortunately is right now due to ordering |