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

Issue 9968016: Move the URL string from TemplateURLRef onto the owning TemplateURL. This will make it easier to m… (Closed)

Created:
8 years, 8 months ago by Peter Kasting
Modified:
8 years, 8 months ago
CC:
chromium-reviews, ncarter (slow), akalin, tfarina, dhollowa+watch_chromium.org, kkania, robertshield, Raghu Simha, James Su, tim (not reviewing)
Visibility:
Public.

Description

Move the URL string from TemplateURLRef onto the owning TemplateURL. This will make it easier to move the data members of TemplateURL into a new class later. This changes the accessors for TemplateURL's TemplateURLRefs. There are now separate accessors for the URLs as strings and as TemplateURLRefs, and the latter have changed to returning a const ref, meaning they no longer return NULL when the corresponding URL string is empty. This makes a number of callers clearer. BUG=none TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=130431

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+676 lines, -751 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider.cc View 1 2 3 4 chunks +10 lines, -11 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 8 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/importer/firefox_importer_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/importer/firefox_importer_utils.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/importer/profile_import_process_messages.h View 1 2 3 3 chunks +26 lines, -43 lines 0 comments Download
M chrome/browser/importer/profile_writer.cc View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/instant/instant_browsertest.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/omnibox_search_hint.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_handler.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/protector/default_search_provider_change.cc View 1 2 3 1 chunk +4 lines, -6 lines 0 comments Download
M chrome/browser/protector/default_search_provider_change_browsertest.cc View 1 2 3 10 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/protector/histograms.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/search_host_to_urls_map.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/search_engines/template_url.h View 1 2 3 9 chunks +34 lines, -41 lines 0 comments Download
M chrome/browser/search_engines/template_url.cc View 1 2 3 14 chunks +63 lines, -59 lines 0 comments Download
M chrome/browser/search_engines/template_url_fetcher.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url_fetcher_unittest.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/search_engines/template_url_parser.cc View 1 2 3 3 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/search_engines/template_url_parser_unittest.cc View 1 2 3 7 chunks +18 lines, -26 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 3 17 chunks +39 lines, -52 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_sync_unittest.cc View 1 2 3 16 chunks +206 lines, -170 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_unittest.cc View 1 2 3 14 chunks +29 lines, -36 lines 0 comments Download
M chrome/browser/search_engines/template_url_unittest.cc View 1 2 3 14 chunks +126 lines, -136 lines 0 comments Download
M chrome/browser/sync/test/integration/search_engines_helper.cc View 1 2 3 2 chunks +6 lines, -15 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_search_engines_sync_test.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_init.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/edit_search_engine_cocoa_controller.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/edit_search_engine_dialog.cc View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/search_engines/edit_search_engine_controller.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/search_engines/keyword_editor_controller.cc View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc View 1 2 3 4 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/ui/search_engines/template_url_table_model.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/edit_search_engine_dialog.cc View 1 2 3 2 chunks +2 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options2/search_engine_manager_handler2.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/webdata/keyword_table.cc View 1 2 3 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/webdata/keyword_table_unittest.cc View 1 2 3 5 chunks +10 lines, -26 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Peter Kasting
sky: review mnissler: chrome/browser/policy/ OWNERS atwilson: chrome/browser/sync/ OWNERS
8 years, 8 months ago (2012-03-30 16:25:38 UTC) #1
sky
LGTM https://chromiumcodereview.appspot.com/9968016/diff/1/chrome/browser/importer/firefox_importer_utils.cc File chrome/browser/importer/firefox_importer_utils.cc (right): https://chromiumcodereview.appspot.com/9968016/diff/1/chrome/browser/importer/firefox_importer_utils.cc#newcode206 chrome/browser/importer/firefox_importer_utils.cc:206: std::string url(template_url->url()); const std::string& https://chromiumcodereview.appspot.com/9968016/diff/1/chrome/browser/search_engines/template_url.h File chrome/browser/search_engines/template_url.h (right): ...
8 years, 8 months ago (2012-03-30 16:45:13 UTC) #2
sky
http://codereview.chromium.org/9968016/diff/1/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (left): http://codereview.chromium.org/9968016/diff/1/chrome/browser/instant/instant_controller.cc#oldcode532 chrome/browser/instant/instant_controller.cc:532: return template_url && template_url->instant_url() && template_url->id() && I think ...
8 years, 8 months ago (2012-03-30 22:00:28 UTC) #3
Mattias Nissler (ping if slow)
chrome/browser/policy LGTM
8 years, 8 months ago (2012-04-02 19:23:17 UTC) #4
Andrew T Wilson (Slow)
8 years, 8 months ago (2012-04-02 20:19:41 UTC) #5
browser/sync LGTM

Powered by Google App Engine
This is Rietveld 408576698