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

Issue 436833002: Stop sharing BaseSearchProvider::OnURLFetchComplete between 2 providers (Closed)

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

Description

Stop sharing BaseSearchProvider::OnURLFetchComplete between 2 providers Sharing BaseSearchProvider::OnURLFetchComplete() between SearchProvider and ZeroSuggestProvider requires both providers to inherit a lot of virtual methods to customize the method's behavior. This makes it difficult to track the code path to understand what is happening in OnURLFetchComplete with each provider. Since SearchSuggestionParser was introduced and OnURLFetchComplete became slimmer, it's simpler to have OnURLFetchComplete() implementations in each provider and remove virtual protected methods. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288675

Patch Set 1 : #

Total comments: 14

Patch Set 2 : rebase #

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -224 lines) Patch
M chrome/browser/autocomplete/base_search_provider.h View 1 8 chunks +7 lines, -43 lines 0 comments Download
M chrome/browser/autocomplete/base_search_provider.cc View 1 4 chunks +4 lines, -50 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.h View 1 2 5 chunks +28 lines, -14 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 7 chunks +79 lines, -58 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.h View 1 2 4 chunks +15 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.cc View 1 2 9 chunks +47 lines, -50 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
hashimoto
6 years, 4 months ago (2014-08-08 10:51:55 UTC) #1
Peter Kasting
LGTM https://codereview.chromium.org/436833002/diff/60001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/436833002/diff/60001/chrome/browser/autocomplete/search_provider.cc#newcode686 chrome/browser/autocomplete/search_provider.cc:686: suggest_results_pending_--; Nit: Predecrement https://codereview.chromium.org/436833002/diff/60001/chrome/browser/autocomplete/search_provider.h File chrome/browser/autocomplete/search_provider.h (right): https://codereview.chromium.org/436833002/diff/60001/chrome/browser/autocomplete/search_provider.h#newcode170 ...
6 years, 4 months ago (2014-08-08 17:33:24 UTC) #2
hashimoto
https://codereview.chromium.org/436833002/diff/60001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/436833002/diff/60001/chrome/browser/autocomplete/search_provider.cc#newcode686 chrome/browser/autocomplete/search_provider.cc:686: suggest_results_pending_--; On 2014/08/08 17:33:23, Peter Kasting wrote: > Nit: ...
6 years, 4 months ago (2014-08-11 05:15:05 UTC) #3
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 4 months ago (2014-08-11 05:15:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/436833002/120001
6 years, 4 months ago (2014-08-11 05:16:13 UTC) #5
commit-bot: I haz the power
6 years, 4 months ago (2014-08-11 09:15:23 UTC) #6
Message was sent while issue was closed.
Change committed as 288675

Powered by Google App Engine
This is Rietveld 408576698