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

Issue 336173005: Don't call AutocompleteInput::Parse() on a background thread, part 1. (Closed)

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

Description

Don't call AutocompleteInput::Parse() on a background thread, part 1. Instead of creating the exact match in HistoryURLProvider::DoAutocomplete(), pass it in in the HistoryURLProviderParams struct. This also uses this match as the "can't find DB, fallback" match in Start(); I don't see any disadvantage to creating that match on the results of running fixup, instead of creating a pre-fixup match like before. This also splits out CanPromoteMatchForInlineAutocomplete() from PromoteMatchForInlineAutocomplete(). I'll be converting PromoteMatchForInlineAutocomplete() into a different function in the next part of this change, and this happens to make the calling convention a little more sane anyway. Also removes a few comments from the .cc file that are in the .h file already. BUG=376199 TEST=none R=mpearson@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277886

Patch Set 1 #

Total comments: 14

Patch Set 2 : Review comments #

Patch Set 3 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -120 lines) Patch
M chrome/browser/autocomplete/history_url_provider.h View 1 2 5 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 1 2 22 chunks +100 lines, -109 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Peter Kasting
6 years, 6 months ago (2014-06-16 23:05:52 UTC) #1
Mark P
https://codereview.chromium.org/336173005/diff/1/chrome/browser/autocomplete/history_url_provider.cc File chrome/browser/autocomplete/history_url_provider.cc (left): https://codereview.chromium.org/336173005/diff/1/chrome/browser/autocomplete/history_url_provider.cc#oldcode797 chrome/browser/autocomplete/history_url_provider.cc:797: // Called on the main thread when the query ...
6 years, 6 months ago (2014-06-17 17:43:25 UTC) #2
Peter Kasting
https://codereview.chromium.org/336173005/diff/1/chrome/browser/autocomplete/history_url_provider.cc File chrome/browser/autocomplete/history_url_provider.cc (left): https://codereview.chromium.org/336173005/diff/1/chrome/browser/autocomplete/history_url_provider.cc#oldcode797 chrome/browser/autocomplete/history_url_provider.cc:797: // Called on the main thread when the query ...
6 years, 6 months ago (2014-06-17 20:39:48 UTC) #3
Mark P
lgtm barring one comment below --mark https://codereview.chromium.org/336173005/diff/1/chrome/browser/autocomplete/history_url_provider.cc File chrome/browser/autocomplete/history_url_provider.cc (right): https://codereview.chromium.org/336173005/diff/1/chrome/browser/autocomplete/history_url_provider.cc#newcode470 chrome/browser/autocomplete/history_url_provider.cc:470: return; On 2014/06/17 ...
6 years, 6 months ago (2014-06-17 21:35:35 UTC) #4
Peter Kasting
6 years, 6 months ago (2014-06-17 23:02:33 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 manually as r277886 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698