Index: chrome/browser/ui/views/location_bar/chrome_to_mobile_view.cc |
diff --git a/chrome/browser/ui/views/location_bar/chrome_to_mobile_view.cc b/chrome/browser/ui/views/location_bar/chrome_to_mobile_view.cc |
index ebd5b4be425b3d3fdfcfe1e40e1faabc563e0712..dc299938d28627710913f2adc6df44b63d6d5454 100644 |
--- a/chrome/browser/ui/views/location_bar/chrome_to_mobile_view.cc |
+++ b/chrome/browser/ui/views/location_bar/chrome_to_mobile_view.cc |
@@ -68,7 +68,8 @@ bool ChromeToMobileView::OnMousePressed(const views::MouseEvent& event) { |
} |
void ChromeToMobileView::OnMouseReleased(const views::MouseEvent& event) { |
- if (event.IsOnlyLeftMouseButton() && HitTest(event.location())) |
+ if (event.IsOnlyLeftMouseButton() && |
+ HitTest(gfx::Rect(event.location(), gfx::Size(0, 0)))) |
command_updater_->ExecuteCommand(IDC_CHROME_TO_MOBILE_PAGE); |
} |