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

Issue 456843003: Remove protected virtual methods from BaseSearchProvider (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

Remove protected virtual methods from BaseSearchProvider This change is a follow-up of https://codereview.chromium.org/436833002/. -GetTemplateURL(), GetInput() and ShouldAppendExtraParams() Instead of calling virtual methods, pass these values as arguments to AddMatchToMap() and ParseSuggestResults(). -StopSuggest() and ClearAllResults() These methods are used to customize the behavior of Stop(). Instead, define Stop() in SearchProvider and ZeroSuggestProvider. -ModifyProviderInfo() This method is only needed by ZeroSuggestProvider. Instead, ZeroSuggestProvider overrides AddProviderInfo() to do the same thing. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290222

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Revive RecordDeletionResult() #

Patch Set 3 : Revert getters #

Total comments: 2

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -73 lines) Patch
M chrome/browser/autocomplete/base_search_provider.h View 1 2 3 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/autocomplete/base_search_provider.cc View 1 2 3 3 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.h View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 3 chunks +25 lines, -17 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.h View 1 2 3 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.cc View 1 2 3 4 chunks +23 lines, -22 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
hashimoto
6 years, 4 months ago (2014-08-12 08:51:22 UTC) #1
Peter Kasting
I don't really understand why this is useful. https://codereview.chromium.org/456843003/diff/20001/chrome/browser/autocomplete/base_search_provider.h File chrome/browser/autocomplete/base_search_provider.h (right): https://codereview.chromium.org/456843003/diff/20001/chrome/browser/autocomplete/base_search_provider.h#newcode56 chrome/browser/autocomplete/base_search_provider.h:56: const ...
6 years, 4 months ago (2014-08-12 18:31:18 UTC) #2
hashimoto
Sorry for forgetting to describe the purpose of this change. This change is a follow-up ...
6 years, 4 months ago (2014-08-13 05:21:22 UTC) #3
Peter Kasting
On 2014/08/13 05:21:22, hashimoto wrote: > Sorry for forgetting to describe the purpose of this ...
6 years, 4 months ago (2014-08-13 06:19:36 UTC) #4
hashimoto
On 2014/08/13 06:19:36, pkasting (away thru Aug 20) wrote: > On 2014/08/13 05:21:22, hashimoto wrote: ...
6 years, 4 months ago (2014-08-13 08:59:43 UTC) #5
Peter Kasting
LGTM https://codereview.chromium.org/456843003/diff/100001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/456843003/diff/100001/chrome/browser/autocomplete/search_provider.cc#newcode318 chrome/browser/autocomplete/search_provider.cc:318: void SearchProvider::StopSuggest() { Nit: You still haven't inlined ...
6 years, 4 months ago (2014-08-13 17:33:45 UTC) #6
hashimoto
https://codereview.chromium.org/456843003/diff/100001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/456843003/diff/100001/chrome/browser/autocomplete/search_provider.cc#newcode318 chrome/browser/autocomplete/search_provider.cc:318: void SearchProvider::StopSuggest() { On 2014/08/13 17:33:45, pkasting (away thru ...
6 years, 4 months ago (2014-08-14 03:52:10 UTC) #7
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 4 months ago (2014-08-18 05:37:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/456843003/120001
6 years, 4 months ago (2014-08-18 05:38:15 UTC) #9
commit-bot: I haz the power
6 years, 4 months ago (2014-08-18 07:45:20 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (120001) as 290222

Powered by Google App Engine
This is Rietveld 408576698