summaryrefslogtreecommitdiffstats
path: root/chrome/views/widget/root_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/widget/root_view.cc')
-rw-r--r--chrome/views/widget/root_view.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/chrome/views/widget/root_view.cc b/chrome/views/widget/root_view.cc
index eed1730..6158a10 100644
--- a/chrome/views/widget/root_view.cc
+++ b/chrome/views/widget/root_view.cc
@@ -402,13 +402,7 @@ bool RootView::OnMouseDragged(const MouseEvent& e) {
gfx::Point p;
ConvertPointToMouseHandler(e.location(), &p);
MouseEvent mouse_event(e.GetType(), p.x(), p.y(), e.GetFlags());
- if (!mouse_pressed_handler_->ProcessMouseDragged(mouse_event,
- &drag_info)) {
- mouse_pressed_handler_ = NULL;
- return false;
- } else {
- return true;
- }
+ return mouse_pressed_handler_->ProcessMouseDragged(mouse_event, &drag_info);
}
return false;
}