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

Issue 7004042: Fix Wrong Offset (Closed)

Created:
9 years, 7 months ago by mrossetti
Modified:
9 years, 7 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix Wrong Offset Set content offset using fill_into_edit's length and not the length of the originally typed term. BUG=82994 TEST=Added unit test. Manual test: 1) Delete the 'History Provider Cache' file, 2) Start Chrome, 3) Type 'about:flags' into omnibox and <ret>, 4) Type 'about:flags/' or 'about:flags@' into omnibox. There should no longer be an assert at this point. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86171

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M chrome/browser/autocomplete/history_quick_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/history_quick_provider_unittest.cc View 1 chunk +8 lines, -0 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
mrossetti
9 years, 7 months ago (2011-05-20 18:30:13 UTC) #1
Peter Kasting
LGTM http://codereview.chromium.org/7004042/diff/1/chrome/browser/autocomplete/history_quick_provider_unittest.cc File chrome/browser/autocomplete/history_quick_provider_unittest.cc (right): http://codereview.chromium.org/7004042/diff/1/chrome/browser/autocomplete/history_quick_provider_unittest.cc#newcode227 chrome/browser/autocomplete/history_quick_provider_unittest.cc:227: std::string expected_url("http://slashdot.org/favorite_page.html"); Remind me why this catches the ...
9 years, 7 months ago (2011-05-20 22:06:41 UTC) #2
Peter Kasting
LGTM
9 years, 7 months ago (2011-05-20 22:08:42 UTC) #3
mrossetti
9 years, 7 months ago (2011-05-20 23:26:13 UTC) #4
On 2011/05/20 22:06:41, Peter Kasting wrote:
> LGTM
> 
>
http://codereview.chromium.org/7004042/diff/1/chrome/browser/autocomplete/his...
> File chrome/browser/autocomplete/history_quick_provider_unittest.cc (right):
> 
>
http://codereview.chromium.org/7004042/diff/1/chrome/browser/autocomplete/his...
> chrome/browser/autocomplete/history_quick_provider_unittest.cc:227:
std::string
> expected_url("http://slashdot.org/favorite_page.html");
> Remind me why this catches the bug?

It would, under the old code, trigger the DCHECK_LE because of the trailing '/'
in the query string.

Powered by Google App Engine
This is Rietveld 408576698