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 923183003: Move URL fixup to a preliminary phase that doesn't affect virtual URLs. (Closed)

Created:
5 years, 10 months ago by Charlie Reis
Modified:
5 years, 10 months ago
Reviewers:
Nicolas Zea, msw, jam
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move URL fixup to a preliminary phase that doesn't affect virtual URLs. Uses BrowserURLHandler since this depends on components and can't live in content. BUG=449829 TEST=See bug for repro steps. Committed: https://crrev.com/94a977f6dc4714f49841db1c2d831ab53e557f15 Cr-Commit-Position: refs/heads/master@{#316923}

Patch Set 1 #

Patch Set 2 : Add and fix tests. #

Patch Set 3 : Fix bug in sync tests #

Total comments: 2

Patch Set 4 : Fix leak in test. #

Total comments: 5

Patch Set 5 : Rename function #

Patch Set 6 : Move to BrowserURLHandler #

Total comments: 6

Patch Set 7 : Avoid duplicate code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -12 lines) Patch
M chrome/browser/browser_about_handler.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_about_handler.cc View 1 2 3 4 5 6 1 chunk +11 lines, -1 line 0 comments Download
M chrome/browser/browser_about_handler_unittest.cc View 1 2 3 2 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sessions/session_restore_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/synced_session.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/browser_url_handler_impl.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/browser_url_handler_impl.cc View 1 2 3 4 5 3 chunks +14 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 2 chunks +9 lines, -3 lines 0 comments Download
M content/public/browser/browser_url_handler.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
Charlie Reis
msw@: Can you review? We've been discussing the approach on the bug, but I thought ...
5 years, 10 months ago (2015-02-17 17:24:46 UTC) #2
Nicolas Zea
sync LGTM, thanks for fixing that test
5 years, 10 months ago (2015-02-17 18:23:54 UTC) #3
msw
https://codereview.chromium.org/923183003/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/923183003/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode170 content/browser/frame_host/navigation_controller_impl.cc:170: GURL dest_url = GetContentClient()->browser()->FixupURL(url); Why can't this just call ...
5 years, 10 months ago (2015-02-17 22:51:38 UTC) #4
Charlie Reis
https://codereview.chromium.org/923183003/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/923183003/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode170 content/browser/frame_host/navigation_controller_impl.cc:170: GURL dest_url = GetContentClient()->browser()->FixupURL(url); On 2015/02/17 22:51:38, msw wrote: ...
5 years, 10 months ago (2015-02-17 22:57:27 UTC) #5
msw
lgtm with a comment nit https://codereview.chromium.org/923183003/diff/60001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/923183003/diff/60001/chrome/browser/chrome_content_browser_client.cc#newcode2286 chrome/browser/chrome_content_browser_client.cc:2286: // Make sure this ...
5 years, 10 months ago (2015-02-17 23:06:41 UTC) #6
Charlie Reis
Thanks-- new patch uploaded. @jam: Can you take a look at this as well? My ...
5 years, 10 months ago (2015-02-17 23:31:49 UTC) #9
jam
On 2015/02/17 23:31:49, Charlie Reis wrote: > Thanks-- new patch uploaded. > > @jam: Can ...
5 years, 10 months ago (2015-02-18 06:04:57 UTC) #10
Charlie Reis
On 2015/02/18 06:04:57, jam wrote: > On 2015/02/17 23:31:49, Charlie Reis wrote: > > Thanks-- ...
5 years, 10 months ago (2015-02-18 17:13:51 UTC) #11
Charlie Reis
After chatting with John, it sounds like it's worthwhile to put this fix closer to ...
5 years, 10 months ago (2015-02-18 21:39:38 UTC) #12
jam
lgtm
5 years, 10 months ago (2015-02-18 21:56:12 UTC) #13
msw
https://codereview.chromium.org/923183003/diff/100001/chrome/browser/browser_about_handler.cc File chrome/browser/browser_about_handler.cc (right): https://codereview.chromium.org/923183003/diff/100001/chrome/browser/browser_about_handler.cc#newcode33 chrome/browser/browser_about_handler.cc:33: *url = url_fixer::FixupURL(url->possibly_invalid_spec(), std::string()); Should this call FixupBrowserAboutURL instead? ...
5 years, 10 months ago (2015-02-18 22:01:24 UTC) #14
Charlie Reis
https://codereview.chromium.org/923183003/diff/100001/chrome/browser/browser_about_handler.cc File chrome/browser/browser_about_handler.cc (right): https://codereview.chromium.org/923183003/diff/100001/chrome/browser/browser_about_handler.cc#newcode33 chrome/browser/browser_about_handler.cc:33: *url = url_fixer::FixupURL(url->possibly_invalid_spec(), std::string()); On 2015/02/18 22:01:23, msw wrote: ...
5 years, 10 months ago (2015-02-18 22:16:18 UTC) #16
msw
Okay, lgtm.
5 years, 10 months ago (2015-02-18 22:17:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/923183003/120001
5 years, 10 months ago (2015-02-18 22:20:38 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-02-18 23:51:14 UTC) #20
commit-bot: I haz the power
5 years, 10 months ago (2015-02-18 23:51:51 UTC) #21
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/94a977f6dc4714f49841db1c2d831ab53e557f15
Cr-Commit-Position: refs/heads/master@{#316923}

Powered by Google App Engine
This is Rietveld 408576698