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

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

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

Description

Don't call AutocompleteInput::Parse() on a background thread, part 2. This changes HistoryURLProviderParams from holding an ACMatches object to holding a HistoryMatches object; the HistoryMatches will no longer be fixed up in DoAutocomplete(), but rather after it returns control to the UI thread. The majority of this change is mechanical, but some nontrivial changes have to be made to DoAutocomplete() to account for how the "promote" action it could previously take must also happen on the UI thread. Therefore the |params| object also has to gain a few members to allow the post-DoAutocomplete() code to do promotion correctly. BUG=376199 TEST=none R=mpearson@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278558

Patch Set 1 #

Total comments: 11

Patch Set 2 : Review comments #

Total comments: 19

Patch Set 3 : Review comments #

Total comments: 9

Patch Set 4 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -184 lines) Patch
M chrome/browser/autocomplete/history_provider_util.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/history_provider_util.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider.h View 1 2 8 chunks +56 lines, -33 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 1 2 3 16 chunks +133 lines, -143 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Peter Kasting
6 years, 6 months ago (2014-06-17 23:47:25 UTC) #1
Mark P
Minor feedback on the .h file. I'll get to the .cc file when I have ...
6 years, 6 months ago (2014-06-18 18:23:45 UTC) #2
Peter Kasting
New snap up. https://codereview.chromium.org/333273009/diff/1/chrome/browser/autocomplete/history_url_provider.h File chrome/browser/autocomplete/history_url_provider.h (right): https://codereview.chromium.org/333273009/diff/1/chrome/browser/autocomplete/history_url_provider.h#newcode91 chrome/browser/autocomplete/history_url_provider.h:91: enum PromoteType { On 2014/06/18 18:23:45, ...
6 years, 6 months ago (2014-06-18 20:38:30 UTC) #3
Changwan Ryu
https://codereview.chromium.org/333273009/diff/20001/chrome/browser/autocomplete/autocomplete_input.cc File chrome/browser/autocomplete/autocomplete_input.cc (right): https://codereview.chromium.org/333273009/diff/20001/chrome/browser/autocomplete/autocomplete_input.cc#newcode133 chrome/browser/autocomplete/autocomplete_input.cc:133: // NOT FOR COMMIT: Remove this once trybots make ...
6 years, 6 months ago (2014-06-19 00:41:40 UTC) #4
Peter Kasting
https://codereview.chromium.org/333273009/diff/20001/chrome/browser/autocomplete/autocomplete_input.cc File chrome/browser/autocomplete/autocomplete_input.cc (right): https://codereview.chromium.org/333273009/diff/20001/chrome/browser/autocomplete/autocomplete_input.cc#newcode133 chrome/browser/autocomplete/autocomplete_input.cc:133: // NOT FOR COMMIT: Remove this once trybots make ...
6 years, 6 months ago (2014-06-19 00:53:41 UTC) #5
Changwan Ryu
https://codereview.chromium.org/333273009/diff/20001/chrome/browser/autocomplete/autocomplete_input.cc File chrome/browser/autocomplete/autocomplete_input.cc (right): https://codereview.chromium.org/333273009/diff/20001/chrome/browser/autocomplete/autocomplete_input.cc#newcode133 chrome/browser/autocomplete/autocomplete_input.cc:133: // NOT FOR COMMIT: Remove this once trybots make ...
6 years, 6 months ago (2014-06-19 00:56:24 UTC) #6
Mark P
This seems logically sound, at statement I mean as high praise given the complexity of ...
6 years, 6 months ago (2014-06-19 03:53:15 UTC) #7
Peter Kasting
New snap up. https://codereview.chromium.org/333273009/diff/1/chrome/browser/autocomplete/history_url_provider.h File chrome/browser/autocomplete/history_url_provider.h (right): https://codereview.chromium.org/333273009/diff/1/chrome/browser/autocomplete/history_url_provider.h#newcode91 chrome/browser/autocomplete/history_url_provider.h:91: enum PromoteType { On 2014/06/19 03:53:13, ...
6 years, 6 months ago (2014-06-19 20:55:23 UTC) #8
Mark P
https://codereview.chromium.org/333273009/diff/40001/chrome/browser/autocomplete/autocomplete_input.cc File chrome/browser/autocomplete/autocomplete_input.cc (right): https://codereview.chromium.org/333273009/diff/40001/chrome/browser/autocomplete/autocomplete_input.cc#newcode133 chrome/browser/autocomplete/autocomplete_input.cc:133: // NOT FOR COMMIT: Remove this once trybots make ...
6 years, 6 months ago (2014-06-19 21:35:14 UTC) #9
Peter Kasting
Uploaded a new patch. I've taken out the check in autocomplete_input.cc in this one so ...
6 years, 6 months ago (2014-06-19 22:27:13 UTC) #10
Mark P
6 years, 6 months ago (2014-06-19 22:30:34 UTC) #11
lgtm

Powered by Google App Engine
This is Rietveld 408576698