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

Issue 320253004: Componentize URLFixerUpper. (Closed)

Created:
6 years, 6 months ago by blundell
Modified:
6 years, 6 months ago
Reviewers:
jam, mmenke
CC:
chromium-reviews, dbeam+watch-options_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, tfarina, jam, eroman, pam+watch_chromium.org, jshin+watch_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, James Su, mmenke, Ryan Sleevi
Visibility:
Public.

Description

Componentize URLFixerUpper. This CL moves URLFixerUpper into a new url_fixer component to allow this code to be shared by the iOS port. At the present time the component contains some minor Chrome-specific logic. Specifically, it rewrites about:// to chrome:// and uses about:// version as the default about:// host. We decided not to abstract this logic at this time, as the only embedders wishing to use this component are ports of Chrome. However, if there comes to be a non-Chrome embedder that wishes to use this component, this behavior could easily be generalized (e.g., by exposing the variables that are used for these purposes in the header file to allow the embedder to customize them). BUG=373229 R=jam@chromium.org TBR=mmenke NOTREECHECKS=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276672

Patch Set 1 #

Patch Set 2 : Fixes #

Total comments: 2

Patch Set 3 : Response to review #

Patch Set 4 : Rebase #

Total comments: 2

Patch Set 5 : Fix OWNERS #

Patch Set 6 : Change similarity #

Patch Set 7 : Win64 fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -1467 lines) Patch
M chrome/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/tab_android.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/android/url_utilities.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_input.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_provider.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/base_search_provider.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/builtin_provider.cc View 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/history_quick_provider.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider_unittest.cc View 4 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider.cc View 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/browser_about_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_about_handler.cc View 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/collected_cookies_browsertest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_tab_util.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/google/google_util.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/managed_mode/managed_mode_url_filter.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/managed_bookmarks_policy_handler.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/url_blacklist_manager_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/prefs/session_startup_pref.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/repost_form_warning_browsertest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_utils.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 3 2 chunks +2 lines, -3 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/startup/startup_browser_creator.cc View 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/about_ui.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/core_options_handler.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/startup_pages_handler.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_utility.gypi View 1 chunk +1 line, -0 lines 0 comments Download
D chrome/common/net/url_fixer_upper.h View 1 chunk +0 lines, -85 lines 0 comments Download
D chrome/common/net/url_fixer_upper.cc View 3 1 chunk +0 lines, -654 lines 0 comments Download
M chrome/common/net/url_fixer_upper_unittest.cc View 1 1 chunk +0 lines, -510 lines 0 comments Download
M chrome/utility/importer/bookmarks_file_importer.cc View 3 2 chunks +2 lines, -2 lines 0 comments Download
M components/OWNERS View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M components/policy/core/browser/url_blacklist_manager.h View 1 chunk +1 line, -1 line 0 comments Download
A + components/url_fixer.gypi View 1 2 3 4 5 6 1 chunk +9 lines, -8 lines 0 comments Download
A + components/url_fixer/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
A components/url_fixer/OWNERS View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A + components/url_fixer/url_fixer.h View 1 3 chunks +5 lines, -5 lines 0 comments Download
A + components/url_fixer/url_fixer.cc View 1 3 22 chunks +80 lines, -72 lines 0 comments Download
A + components/url_fixer/url_fixer_unittest.cc View 1 11 chunks +36 lines, -29 lines 0 comments Download
M net/base/net_util_icu.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
blundell
jam: For review. Follows the approach we discussed. rsleevi: FYI.
6 years, 6 months ago (2014-06-09 10:25:35 UTC) #1
jam
lgtm with owners Set to brettw+pkasting https://codereview.chromium.org/320253004/diff/100001/components/OWNERS File components/OWNERS (right): https://codereview.chromium.org/320253004/diff/100001/components/OWNERS#newcode173 components/OWNERS:173: per-file url_fixer.gypi=wtc@chromium.org here ...
6 years, 6 months ago (2014-06-09 23:26:33 UTC) #2
blundell
https://codereview.chromium.org/320253004/diff/100001/components/OWNERS File components/OWNERS (right): https://codereview.chromium.org/320253004/diff/100001/components/OWNERS#newcode173 components/OWNERS:173: per-file url_fixer.gypi=wtc@chromium.org On 2014/06/09 23:26:32, jam wrote: > here ...
6 years, 6 months ago (2014-06-10 12:35:17 UTC) #3
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-10 15:26:05 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/320253004/120001
6 years, 6 months ago (2014-06-10 15:28:47 UTC) #5
jam
https://codereview.chromium.org/320253004/diff/140001/components/url_fixer/OWNERS File components/url_fixer/OWNERS (right): https://codereview.chromium.org/320253004/diff/140001/components/url_fixer/OWNERS#newcode2 components/url_fixer/OWNERS:2: per-file url_fixer.gypi=pkasting@chromium.org remove the per-file
6 years, 6 months ago (2014-06-10 21:13:23 UTC) #6
blundell
https://codereview.chromium.org/320253004/diff/140001/components/url_fixer/OWNERS File components/url_fixer/OWNERS (right): https://codereview.chromium.org/320253004/diff/140001/components/url_fixer/OWNERS#newcode2 components/url_fixer/OWNERS:2: per-file url_fixer.gypi=pkasting@chromium.org Derp. Done :). On 2014/06/10 21:13:23, jam ...
6 years, 6 months ago (2014-06-11 09:06:47 UTC) #7
blundell
TBR=mmenke for //net
6 years, 6 months ago (2014-06-11 09:07:26 UTC) #8
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-11 09:07:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/320253004/160001
6 years, 6 months ago (2014-06-11 09:10:10 UTC) #10
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-11 13:37:07 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/320253004/180001
6 years, 6 months ago (2014-06-11 13:38:59 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 19:52:27 UTC) #13
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-11 19:56:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/320253004/200001
6 years, 6 months ago (2014-06-11 20:00:41 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:24:31 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:28:20 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/15655) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/18791)
6 years, 6 months ago (2014-06-11 21:28:21 UTC) #18
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-12 05:17:21 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/320253004/200001
6 years, 6 months ago (2014-06-12 05:20:30 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-12 12:47:43 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-12 12:57:35 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/73290)
6 years, 6 months ago (2014-06-12 12:57:37 UTC) #23
blundell
6 years, 6 months ago (2014-06-12 14:29:18 UTC) #24
Message was sent while issue was closed.
Committed patchset #7 manually as r276672 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698