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

Issue 329783003: Omnibox: append old matches, don't attempt to insert them (Closed)

Created:
6 years, 6 months ago by Mark P
Modified:
6 years, 4 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, James Su
Visibility:
Public.

Description

Omnibox: append old matches, don't attempt to insert them Make AddMatch() append old matches rather than attempt to insert them in order. We call SortAndCull() after AddMatch() in the only code path that uses AddMatch(), so the order doesn't matter. Then eliminate AddMatch() because the revised version is short, instead inlining the few things it still does in its only caller. In some quick interactive testing, I didn't notice any problems. The autocomplete_result tests still pass also. (That said, I don't think we test CopyOldMatches that extensively in it.) BUG=380357 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276714

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove DCHECKs #

Patch Set 3 : 366181 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M extensions/browser/api/runtime/runtime_apitest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Mark P
I think this is safe, but as I note in the changelist description this behavior ...
6 years, 6 months ago (2014-06-11 19:17:17 UTC) #1
Peter Kasting
LGTM https://codereview.chromium.org/329783003/diff/1/chrome/browser/autocomplete/autocomplete_result.cc File chrome/browser/autocomplete/autocomplete_result.cc (right): https://codereview.chromium.org/329783003/diff/1/chrome/browser/autocomplete/autocomplete_result.cc#newcode450 chrome/browser/autocomplete/autocomplete_result.cc:450: match.description); I don't think these two DCHECKs are ...
6 years, 6 months ago (2014-06-11 20:06:43 UTC) #2
Mark P
https://codereview.chromium.org/329783003/diff/1/chrome/browser/autocomplete/autocomplete_result.cc File chrome/browser/autocomplete/autocomplete_result.cc (right): https://codereview.chromium.org/329783003/diff/1/chrome/browser/autocomplete/autocomplete_result.cc#newcode450 chrome/browser/autocomplete/autocomplete_result.cc:450: match.description); On 2014/06/11 20:06:43, Peter Kasting wrote: > I ...
6 years, 6 months ago (2014-06-11 21:40:45 UTC) #3
Mark P
The CQ bit was checked by mpearson@chromium.org
6 years, 6 months ago (2014-06-11 21:40:48 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/329783003/20001
6 years, 6 months ago (2014-06-11 21:43:18 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 23:11:45 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 23:13:19 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device/builds/149847) ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/21945) mac_chromium_compile_dbg ...
6 years, 6 months ago (2014-06-11 23:13:20 UTC) #8
Mark P
The CQ bit was checked by mpearson@chromium.org
6 years, 6 months ago (2014-06-12 14:29:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/329783003/20001
6 years, 6 months ago (2014-06-12 14:31:19 UTC) #10
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 16:54:44 UTC) #11
Message was sent while issue was closed.
Change committed as 276714

Powered by Google App Engine
This is Rietveld 408576698