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

Issue 2816383002: Remove non-const version of GetDefaultSearchProvider() and make all callers call the const version (Closed)

Created:
3 years, 8 months ago by jeffschiller
Modified:
3 years, 8 months ago
CC:
chromium-reviews, David Black, donnd+watch_chromium.org, jdonnelly+watch_chromium.org, Jered, jfweitz+watch_chromium.org, kmadhusu+watch_chromium.org, loading-reviews_chromium.org, melevin+watch_chromium.org, Randy Smith (Not in Mondays), samarth+watch_chromium.org, skanuj+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove non-const version of GetDefaultSearchProvider() and make all callers call the const version BUG=672364 TBR=jam@chromium.org Review-Url: https://codereview.chromium.org/2816383002 Cr-Commit-Position: refs/heads/master@{#466554} Committed: https://chromium.googlesource.com/chromium/src/+/8aa7a4e1cf5bb91918e8692a1909ededca93523b

Patch Set 1 #

Patch Set 2 : Fix compiler error for iOS build by calling the const version of TemplateURLService::GetDefaultSearā€¦ #

Total comments: 1

Patch Set 3 : Fix lots of Android and iOS compiles by ensuring they use the const TemplateURL* version of GetDefaā€¦ #

Patch Set 4 : Fix instant extended interactive ui test for calling the const version of GetDefaultSearchProvider() #

Total comments: 3

Patch Set 5 : Avoid const_cast in unit test #

Patch Set 6 : Fix unit test (the model was already loaded) #

Patch Set 7 : Fix unit test (the model was already loaded) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -61 lines) Patch
M chrome/browser/android/contextualsearch/contextual_search_delegate.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/android/locale/special_locale_handler.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/android/logo_service.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profile_resetter/profile_resetter_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profile_resetter/resettable_settings_snapshot.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/search/search.cc View 6 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_android.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_sync_unittest.cc View 1 2 3 4 5 6 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_unittest.cc View 1 2 3 4 5 6 4 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_interactive_uitest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/search_engines/keyword_editor_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/search_engines/keyword_editor_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/omnibox/browser/history_url_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M components/omnibox/browser/history_url_provider.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/search_engines/template_url.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/search_engines/template_url.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/search_engines/template_url_service.h View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M components/search_engines/template_url_service.cc View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M ios/chrome/browser/google/google_logo_service.mm View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/browser_view_controller.mm View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/contextual_search/contextual_search_delegate.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/contextual_search/touch_to_search_permissions_mediator.mm View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/ntp/google_landing_mediator.mm View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/ntp/new_tab_page_controller.mm View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 47 (36 generated)
jeffschiller
3 years, 8 months ago (2017-04-16 20:28:42 UTC) #2
jeffschiller
3 years, 8 months ago (2017-04-16 20:28:53 UTC) #3
mmenke
c/b/l LGTM
3 years, 8 months ago (2017-04-17 03:35:44 UTC) #4
Peter Kasting
LGTM, but looks like you still have a lot of callsites in test code that ...
3 years, 8 months ago (2017-04-17 18:56:59 UTC) #13
jeffschiller
3 years, 8 months ago (2017-04-18 01:48:52 UTC) #23
Peter Kasting
LGTM (1) When adding multiple reviewers, say exactly what you want each to review. (2) ...
3 years, 8 months ago (2017-04-18 02:07:32 UTC) #24
battre
mechanical changes in chrome/browser/profile_resetter LGTM
3 years, 8 months ago (2017-04-18 09:13:22 UTC) #30
jochen (gone - plz use gerrit)
lgtm
3 years, 8 months ago (2017-04-18 11:39:08 UTC) #31
jeffschiller
jam, please review mechanical changes in: chrome/browser/android/contextualsearch/contextual_search_delegate.cc chrome/browser/android/locale/special_locale_handler.cc chrome/browser/android/logo_service.cc chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc chrome/browser/policy/policy_browsertest.cc chrome/browser/profile_resetter/profile_resetter_unittest.cc chrome/browser/profile_resetter/resettable_settings_snapshot.cc chrome/browser/search/search.cc ...
3 years, 8 months ago (2017-04-21 04:58:36 UTC) #36
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/2816383002/120001
3 years, 8 months ago (2017-04-23 02:18:22 UTC) #44
commit-bot: I haz the power
3 years, 8 months ago (2017-04-23 02:23:43 UTC) #47
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/8aa7a4e1cf5bb91918e8692a1909...

Powered by Google App Engine
This is Rietveld 408576698