Index: ui/views/controls/textfield/textfield.cc |
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc |
index 24eb8bde75bfe042cad79c4c2737a829e0f117fd..bb5ab806a4f59b6b1fa947d820883a1561afc10a 100644 |
--- a/ui/views/controls/textfield/textfield.cc |
+++ b/ui/views/controls/textfield/textfield.cc |
@@ -1930,7 +1930,8 @@ void Textfield::UpdateContextMenu() { |
void Textfield::TrackMouseClicks(const ui::MouseEvent& event) { |
if (event.IsOnlyLeftMouseButton()) { |
base::TimeDelta time_delta = event.time_stamp() - last_click_time_; |
- if (time_delta.InMilliseconds() <= GetDoubleClickInterval() && |
+ if (!last_click_time_.is_null() && |
+ time_delta.InMilliseconds() <= GetDoubleClickInterval() && |
!ExceededDragThreshold(event.location() - last_click_location_)) { |
// Upon clicking after a triple click, the count should go back to double |
// click and alternate between double and triple. This assignment maps |