Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Unified Diff: chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc

Issue 6340012: Fix a DCHECK failure in AutocompleteEditModel::OnPopupDataChanged() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update. Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
diff --git a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
index 1900df28e3b93d7fb0d8eb0a6a4337b99b858746..0b182c444ecd90d89e216c96e252bf8cb723922f 100644
--- a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
+++ b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
@@ -1032,7 +1032,7 @@ bool AutocompletePopupContentsView::OnMousePressed(
size_t index = GetIndexForPoint(event.location());
model_->SetHoveredLine(index);
if (HasMatchAt(index) && event.IsLeftMouseButton())
- model_->SetSelectedLine(index, false);
+ model_->SetSelectedLine(index, false, false);
}
return true;
}
@@ -1058,7 +1058,7 @@ bool AutocompletePopupContentsView::OnMouseDragged(
size_t index = GetIndexForPoint(event.location());
model_->SetHoveredLine(index);
if (!ignore_mouse_drag_ && HasMatchAt(index) && event.IsLeftMouseButton())
- model_->SetSelectedLine(index, false);
+ model_->SetSelectedLine(index, false, false);
}
return true;
}

Powered by Google App Engine
This is Rietveld 408576698