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

Issue 2290503003: Remove use of stl_util in search_engines. (Closed)

Created:
4 years, 3 months ago by Avi (use Gerrit)
Modified:
4 years, 3 months ago
Reviewers:
droger, Nico, Peter Kasting
CC:
chromium-reviews, kmadhusu+watch_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, tburkard+watch_chromium.org, tfarina, dougw+watch_chromium.org, donnd+watch_chromium.org, gavinp+prer_chromium.org, jfweitz+watch_chromium.org, David Black, sync-reviews_chromium.org, samarth+watch_chromium.org, dhollowa+watch_chromium.org, chromium-apps-reviews_chromium.org, James Su, Jered
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove use of stl_util in search_engines. BUG=555865 Committed: https://crrev.com/8a64b715b5358377162509aa064242a266f37bdb Cr-Commit-Position: refs/heads/master@{#416291}

Patch Set 1 #

Patch Set 2 : mobile #

Patch Set 3 : ios #

Patch Set 4 : ios for reals #

Total comments: 111

Patch Set 5 : new approach #

Patch Set 6 : rebase #

Total comments: 32

Patch Set 7 : more nits #

Patch Set 8 : what's a pointer between friends? #

Patch Set 9 : compiles now #

Patch Set 10 : fix broken test #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+615 lines, -688 lines) Patch
M chrome/browser/android/contextualsearch/contextual_search_delegate_unittest.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 4 5 6 4 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/chrome_content_browser_client_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/importer/profile_writer.cc View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/search/instant_service_unittest.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/search/instant_unittest_base.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/search/search_unittest.cc View 1 2 3 4 6 chunks +11 lines, -14 lines 0 comments Download
M chrome/browser/search_engines/template_url_fetcher_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_service_sync_unittest.cc View 1 2 3 4 37 chunks +114 lines, -129 lines 4 comments Download
M chrome/browser/search_engines/template_url_service_unittest.cc View 1 2 3 4 5 6 7 8 9 26 chunks +62 lines, -62 lines 0 comments Download
M chrome/browser/sync/test/integration/search_engines_helper.h View 2 chunks +13 lines, -11 lines 0 comments Download
M chrome/browser/sync/test/integration/search_engines_helper.cc View 3 chunks +14 lines, -11 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view_browsertest.cc View 1 2 3 4 5 6 5 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/search/instant_search_prerenderer_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/instant_test_utils.cc View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/search/new_tab_page_interceptor_browsertest.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/search/search_ipc_router_unittest.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/search_engines/edit_search_engine_controller.cc View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/search_engines/search_engine_tab_helper.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/search_engines/template_url_table_model.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M components/omnibox/browser/autocomplete_provider_unittest.cc View 1 2 3 4 4 chunks +18 lines, -20 lines 0 comments Download
M components/omnibox/browser/autocomplete_result_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M components/omnibox/browser/history_url_provider_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M components/omnibox/browser/keyword_provider_unittest.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M components/omnibox/browser/scored_history_match_unittest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M components/omnibox/browser/shortcuts_backend_unittest.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M components/omnibox/browser/zero_suggest_provider_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M components/search_engines/default_search_manager.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/search_engines/default_search_policy_handler.h View 2 chunks +2 lines, -1 line 0 comments Download
M components/search_engines/default_search_policy_handler.cc View 1 2 3 4 5 5 chunks +11 lines, -20 lines 0 comments Download
M components/search_engines/keyword_table_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/search_engines/search_host_to_urls_map.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/search_engines/search_host_to_urls_map.cc View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M components/search_engines/search_host_to_urls_map_unittest.cc View 1 2 3 4 4 chunks +17 lines, -29 lines 0 comments Download
M components/search_engines/template_url_fetcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/search_engines/template_url_prepopulate_data.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/search_engines/template_url_service.h View 1 2 3 4 5 6 7 chunks +25 lines, -34 lines 0 comments Download
M components/search_engines/template_url_service.cc View 1 2 3 4 5 6 45 chunks +179 lines, -187 lines 0 comments Download
M components/search_engines/template_url_service_util_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -36 lines 0 comments Download
M components/search_engines/util.h View 1 2 3 4 4 chunks +8 lines, -4 lines 0 comments Download
M components/search_engines/util.cc View 1 2 3 4 5 6 7 14 chunks +44 lines, -50 lines 0 comments Download
M ios/chrome/browser/search_engines/search_engines_util.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 60 (45 generated)
Avi (use Gerrit)
4 years, 3 months ago (2016-08-30 17:17:18 UTC) #18
Peter Kasting
Thanks very much for doing this work! This is a definite improvement to the TemplateURLService ...
4 years, 3 months ago (2016-08-31 04:12:58 UTC) #19
Avi (use Gerrit)
An excellent API suggestion; redid the CL based on it. https://codereview.chromium.org/2290503003/diff/60001/chrome/browser/android/contextualsearch/contextual_search_delegate_unittest.cc File chrome/browser/android/contextualsearch/contextual_search_delegate_unittest.cc (right): https://codereview.chromium.org/2290503003/diff/60001/chrome/browser/android/contextualsearch/contextual_search_delegate_unittest.cc#newcode73 ...
4 years, 3 months ago (2016-09-01 00:34:28 UTC) #22
Peter Kasting
LGTM You are awesome! http://youtu.be/StTqXEQ2l-Y https://codereview.chromium.org/2290503003/diff/100001/chrome/browser/autocomplete/search_provider_unittest.cc File chrome/browser/autocomplete/search_provider_unittest.cc (right): https://codereview.chromium.org/2290503003/diff/100001/chrome/browser/autocomplete/search_provider_unittest.cc#newcode289 chrome/browser/autocomplete/search_provider_unittest.cc:289: turl_model->Add(base::WrapUnique(default_t_url_)); Nit: These two ...
4 years, 3 months ago (2016-09-01 08:21:39 UTC) #29
Avi (use Gerrit)
Question: are the fixups outside of search_engines routine enough to be TBR-able? https://codereview.chromium.org/2290503003/diff/100001/chrome/browser/autocomplete/search_provider_unittest.cc File chrome/browser/autocomplete/search_provider_unittest.cc ...
4 years, 3 months ago (2016-09-01 15:14:47 UTC) #32
Avi (use Gerrit)
Nico: chrome/browser generic changes David: one random ios file
4 years, 3 months ago (2016-09-01 19:41:19 UTC) #40
Peter Kasting
Probably best to go ahead and get OWNER signoff for those other changes rather than ...
4 years, 3 months ago (2016-09-01 20:25:05 UTC) #43
droger
On 2016/09/01 19:41:19, Avi wrote: > David: one random ios file lgtm
4 years, 3 months ago (2016-09-02 11:45:17 UTC) #50
Nico
chrome/ lgtm Nice change! https://codereview.chromium.org/2290503003/diff/180001/chrome/browser/search_engines/template_url_service_sync_unittest.cc File chrome/browser/search_engines/template_url_service_sync_unittest.cc (right): https://codereview.chromium.org/2290503003/diff/180001/chrome/browser/search_engines/template_url_service_sync_unittest.cc#newcode353 chrome/browser/search_engines/template_url_service_sync_unittest.cc:353: std::unique_ptr<TemplateURL> turl) const { (unrelated ...
4 years, 3 months ago (2016-09-02 16:22:22 UTC) #51
Avi (use Gerrit)
https://codereview.chromium.org/2290503003/diff/180001/chrome/browser/search_engines/template_url_service_sync_unittest.cc File chrome/browser/search_engines/template_url_service_sync_unittest.cc (right): https://codereview.chromium.org/2290503003/diff/180001/chrome/browser/search_engines/template_url_service_sync_unittest.cc#newcode353 chrome/browser/search_engines/template_url_service_sync_unittest.cc:353: std::unique_ptr<TemplateURL> turl) const { On 2016/09/02 16:22:22, Nico wrote: ...
4 years, 3 months ago (2016-09-02 17:25:38 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2290503003/180001
4 years, 3 months ago (2016-09-02 17:25:55 UTC) #55
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 3 months ago (2016-09-02 17:30:22 UTC) #56
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/8a64b715b5358377162509aa064242a266f37bdb Cr-Commit-Position: refs/heads/master@{#416291}
4 years, 3 months ago (2016-09-02 17:32:26 UTC) #58
Nico
https://codereview.chromium.org/2290503003/diff/180001/chrome/browser/search_engines/template_url_service_sync_unittest.cc File chrome/browser/search_engines/template_url_service_sync_unittest.cc (right): https://codereview.chromium.org/2290503003/diff/180001/chrome/browser/search_engines/template_url_service_sync_unittest.cc#newcode353 chrome/browser/search_engines/template_url_service_sync_unittest.cc:353: std::unique_ptr<TemplateURL> turl) const { On 2016/09/02 17:25:38, Avi wrote: ...
4 years, 3 months ago (2016-09-02 17:34:49 UTC) #59
Peter Kasting
4 years, 3 months ago (2016-09-02 19:22:22 UTC) #60
Message was sent while issue was closed.
https://codereview.chromium.org/2290503003/diff/180001/chrome/browser/search_...
File chrome/browser/search_engines/template_url_service_sync_unittest.cc
(right):

https://codereview.chromium.org/2290503003/diff/180001/chrome/browser/search_...
chrome/browser/search_engines/template_url_service_sync_unittest.cc:353:
std::unique_ptr<TemplateURL> turl) const {
On 2016/09/02 17:34:49, Nico (away until Tuesday) wrote:
> On 2016/09/02 17:25:38, Avi wrote:
> > On 2016/09/02 16:22:22, Nico wrote:
> > > (unrelated to your change, this feels like a somewhat strange api. If it
> only
> > > wants a TemplateURL to pass on as reference, why does it require the
> template
> > > url to be on the heap just so it can delete it?)
> > 
> > So it can reuse CreateTestTemplateURL ?
> 
> Sure, but that function is local to this file and as far as I can tell nothing
> else requires it to produce results on the heap. (Didn't look super carefully
> though.)

Yeah, this probably should have taken a const TemplateURL& instead, and callers
added a '*'.  I didn't peer closely enough at this.

Powered by Google App Engine
This is Rietveld 408576698