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

Issue 6380012: Fix a CHECK failure in AutocompletePopupModel::InfoForCurrentSelection(). (Closed)

Created:
9 years, 11 months ago by James Su
Modified:
9 years, 7 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews
Visibility:
Public.

Description

Fix a CHECK failure in AutocompletePopupModel::InfoForCurrentSelection(). BUG=70344 TEST=See bug report. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72417

Patch Set 1 #

Total comments: 1

Patch Set 2 : Correct solution. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -7 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit.cc View 1 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_popup_model.cc View 1 1 chunk +8 lines, -1 line 2 comments Download

Messages

Total messages: 4 (0 generated)
James Su
9 years, 11 months ago (2011-01-21 23:53:44 UTC) #1
Peter Kasting
http://codereview.chromium.org/6380012/diff/1/chrome/browser/autocomplete/autocomplete_edit.cc File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/6380012/diff/1/chrome/browser/autocomplete/autocomplete_edit.cc#newcode491 chrome/browser/autocomplete/autocomplete_edit.cc:491: if (has_temporary_text_ && popup_->IsOpen()) { It should be an ...
9 years, 11 months ago (2011-01-21 23:58:15 UTC) #2
James Su
A better solution :)
9 years, 11 months ago (2011-01-22 03:41:54 UTC) #3
Peter Kasting
9 years, 11 months ago (2011-01-24 22:10:19 UTC) #4
LGTM

http://codereview.chromium.org/6380012/diff/5001/chrome/browser/autocomplete/...
File chrome/browser/autocomplete/autocomplete_popup_model.cc (right):

http://codereview.chromium.org/6380012/diff/5001/chrome/browser/autocomplete/...
chrome/browser/autocomplete/autocomplete_popup_model.cc:322: 
Nit: Unnecessary blank line

http://codereview.chromium.org/6380012/diff/5001/chrome/browser/autocomplete/...
chrome/browser/autocomplete/autocomplete_popup_model.cc:326:
edit_model_->PopupBoundsChangedTo(gfx::Rect());
Nit: Let's roll this call into the body of OnPopupClosed().  That will make the
API a little simpler to use and let us get rid of the braces here too.

Powered by Google App Engine
This is Rietveld 408576698