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

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: Rebase and remove the url check. 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 9068acedf9e3297db03f34c98e8c4f7daab33255..c9e6d11e31c139e2cbd8b1f6ffa701c59f7b36b4 100644
--- a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
+++ b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
@@ -1030,7 +1030,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;
}
@@ -1056,7 +1056,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