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

Issue 10173001: Add a Profile* member to TemplateURL. This makes some invocations of ReplaceSearchTerms() a bit le… (Closed)

Created:
8 years, 8 months ago by Peter Kasting
Modified:
8 years, 8 months ago
CC:
chromium-reviews, ncarter (slow), creis+watch_chromium.org, akalin, tfarina, dhollowa+watch_chromium.org, brettw-cc_chromium.org, Avi (use Gerrit), ajwong+watch_chromium.org, Raghu Simha, James Su, tim (not reviewing)
Visibility:
Public.

Description

Add a Profile* member to TemplateURL. This makes some invocations of ReplaceSearchTerms() a bit less verbose, and will be useful later when UIThreadSearchTermsData starts taking a Profile*. One downside is that there are a number of const_cast<>()s added when we try to access the profile() of a const TemplateURL*. These will all go away soon when TemplateURLService is switched to using "const" much less, so I didn't worry too much about them. BUG=none TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=133483

Patch Set 1 #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+489 lines, -471 lines) Patch
M chrome/browser/autocomplete/autocomplete_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/search_provider.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/importer/firefox2_importer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/importer/ie_importer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/importer/profile_import_process_messages.h View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/importer/profile_writer.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/instant/instant_browsertest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/instant/instant_loader.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 4 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/protector/default_search_provider_change_browsertest.cc View 9 chunks +36 lines, -32 lines 0 comments Download
M chrome/browser/search_engines/search_host_to_urls_map_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/search_provider_install_data_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search_engines/template_url.h View 5 chunks +7 lines, -11 lines 0 comments Download
M chrome/browser/search_engines/template_url.cc View 4 chunks +7 lines, -13 lines 0 comments Download
M chrome/browser/search_engines/template_url_fetcher.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/search_engines/template_url_fetcher_unittest.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/search_engines/template_url_parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data.h View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data.cc View 3 chunks +17 lines, -14 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 21 chunks +31 lines, -21 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_sync_unittest.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_unittest.cc View 19 chunks +53 lines, -39 lines 0 comments Download
M chrome/browser/search_engines/template_url_unittest.cc View 27 chunks +30 lines, -31 lines 0 comments Download
M chrome/browser/search_engines/util.h View 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/util.cc View 9 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/sync/test/integration/search_engines_helper.h View 2 chunks +20 lines, -32 lines 0 comments Download
M chrome/browser/sync/test/integration/search_engines_helper.cc View 7 chunks +90 lines, -83 lines 2 comments Download
M chrome/browser/sync/test/integration/two_client_search_engines_sync_test.cc View 2 chunks +82 lines, -84 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_init.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/edit_search_engine_cocoa_controller_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view_browsertest.cc View 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/search_engines/edit_search_engine_controller.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/search_engines/search_engine_tab_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/search_engines/template_url_table_model.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/webdata/keyword_table_unittest.cc View 17 chunks +18 lines, -18 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Peter Kasting
ivankr: chrome/browser/protector mnissler: chrome/browser/policy atwilson: chrome/browser/sync sky: rest
8 years, 8 months ago (2012-04-20 23:48:08 UTC) #1
Peter Kasting
Incidentally, for sync, I wound up getting some cleanup stuff mixed in, mainly moving some ...
8 years, 8 months ago (2012-04-20 23:50:12 UTC) #2
Mattias Nissler (ping if slow)
chrome/browser/policy LGTM
8 years, 8 months ago (2012-04-23 08:46:33 UTC) #3
Ivan Korotkov
protector/ LGTM
8 years, 8 months ago (2012-04-23 14:14:18 UTC) #4
sky
LGTM
8 years, 8 months ago (2012-04-23 15:08:14 UTC) #5
Andrew T Wilson (Slow)
LGTM for browser/sync https://chromiumcodereview.appspot.com/10173001/diff/15001/chrome/browser/sync/test/integration/search_engines_helper.cc File chrome/browser/sync/test/integration/search_engines_helper.cc (right): https://chromiumcodereview.appspot.com/10173001/diff/15001/chrome/browser/sync/test/integration/search_engines_helper.cc#newcode260 chrome/browser/sync/test/integration/search_engines_helper.cc:260: if (sync_datatype_helper::test()->use_verifier()) { This is fine ...
8 years, 8 months ago (2012-04-23 16:36:36 UTC) #6
Peter Kasting
https://chromiumcodereview.appspot.com/10173001/diff/15001/chrome/browser/sync/test/integration/search_engines_helper.cc File chrome/browser/sync/test/integration/search_engines_helper.cc (right): https://chromiumcodereview.appspot.com/10173001/diff/15001/chrome/browser/sync/test/integration/search_engines_helper.cc#newcode260 chrome/browser/sync/test/integration/search_engines_helper.cc:260: if (sync_datatype_helper::test()->use_verifier()) { On 2012/04/23 16:36:36, Andrew T Wilson ...
8 years, 8 months ago (2012-04-23 18:14:26 UTC) #7
Peter Kasting
8 years, 8 months ago (2012-04-23 18:25:19 UTC) #8
On 2012/04/23 18:14:26, Peter Kasting wrote:
> I'm not sure in the end which consequence is worse.

I'm going to restore the using statement since I don't want to change the code
if I'm not convinced I'm improving it.

Powered by Google App Engine
This is Rietveld 408576698