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

Issue 7068007: Revise about: and chrome: url handling. (Closed)

Created:
9 years, 7 months ago by msw
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Avi (use Gerrit), Jói, Erik does not do reviews, Paweł Hajdan Jr., jam, Aaron Boodman, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

*Fixup about and chrome scheme URLs in URLFixerUpper::FixupURL. *Update AboutSource to use the source_name of each about/chrome page. *Make WillHandleBrowserAboutURL fix up schemes and handle chrome://foo/ -Redirect memory to memory-redirect (wasn't handling chrome://memory/). -Catalog all kChromeUI*Hosts in url_constants.cc -Simplify paths (credits, os-credits, ipc, settings, about/version). -Nix web_ui_util::ChromeURLHostEquals (use scheme & host comparison). -Favor GURL::SchemeIs and url_constants, update & expand tests. -Add and fixup chrome://chrome-urls (the about:about page). -Update special_tabs.py from Nirnimesh's codereview.chromium.org/6995057/. This change was reverted with r88166 for sync_integration_tests failures. These failures are a tangential issue, crbug.com/85294; I'll re-land this soon. BUG=55771 TEST=Access about:, about://, chrome:, chrome:// pages. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88142 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88367

Patch Set 1 #

Patch Set 2 : Cleanup in process. #

Patch Set 3 : Cleanup and improve patch. #

Total comments: 16

Patch Set 4 : Address comments; Add URLFixerUpper::FixupChromeURL. #

Patch Set 5 : Address comments. #

Total comments: 8

Patch Set 6 : Address comments and add extra crash URL checks. #

Total comments: 1

Patch Set 7 : Sync and merge. #

Patch Set 8 : Handle Chrome URLs in FixupURL, force fixup in WillHandleBrowserAboutURL, add chrome://chrome-urls/. #

Patch Set 9 : Fix nits from codereview.chromium.org/7104022/. #

Total comments: 2

Patch Set 10 : Update special_tabs.py from Nirnimesh's codereview.chromium.org/6995057/. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+561 lines, -549 lines) Patch
M chrome/browser/accessibility/accessibility_win_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/builtin_provider.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/automation/automation_tab_helper_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_about_handler.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -10 lines 0 comments Download
M chrome/browser/browser_about_handler.cc View 1 2 3 4 5 6 7 8 9 12 chunks +184 lines, -278 lines 0 comments Download
M chrome/browser/browser_about_handler_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +41 lines, -39 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/crash_recovery_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/all_urls_apitest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.cc View 1 2 3 4 5 6 7 8 5 chunks +21 lines, -14 lines 0 comments Download
M chrome/browser/history/history.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -7 lines 0 comments Download
M chrome/browser/net/url_fixer_upper.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/net/url_fixer_upper.cc View 1 2 3 4 5 6 7 5 chunks +16 lines, -9 lines 0 comments Download
M chrome/browser/net/url_fixer_upper_unittest.cc View 1 2 3 4 5 6 7 3 chunks +49 lines, -4 lines 0 comments Download
M chrome/browser/net/view_blob_internals_job_factory.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/net/view_http_cache_job_factory.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/printing/cloud_print/cloud_print_setup_source.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/print_dialog_cloud.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/printing/print_dialog_cloud_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/tab_restore_uitest.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/tabs/tab_strip_model.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/browser_toolbar_gtk.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/BidiCheckerWebUITest.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/chrome_url_data_manager_backend.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_factory.cc View 1 2 3 4 5 6 7 8 5 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui_uitest.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/options/about_page_handler.cc View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/web_ui_util.h View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/web_ui_util.cc View 1 2 3 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/common/about_handler.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/common/about_handler.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -8 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 6 chunks +65 lines, -34 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 5 chunks +65 lines, -30 lines 0 comments Download
M chrome/renderer/about_handler.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/test/automation/automation_proxy_uitest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/functional/special_tabs.py View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/child_process_security_policy_unittest.cc View 1 2 3 4 5 6 7 4 chunks +15 lines, -0 lines 0 comments Download
M content/browser/site_instance.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -5 lines 0 comments Download
M content/browser/site_instance_unittest.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -12 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
msw
This change still needs some work, but please review or include others. Thanks! Jeff is ...
9 years, 7 months ago (2011-05-27 16:35:32 UTC) #1
sky
http://codereview.chromium.org/7068007/diff/6002/chrome/browser/browser_about_handler.cc File chrome/browser/browser_about_handler.cc (right): http://codereview.chromium.org/7068007/diff/6002/chrome/browser/browser_about_handler.cc#newcode113 chrome/browser/browser_about_handler.cc:113: #if defined(OS_WIN) nit: All the ifdefs in here make ...
9 years, 7 months ago (2011-05-27 16:54:40 UTC) #2
abarth-chromium
http://codereview.chromium.org/7068007/diff/6002/chrome/browser/ui/webui/web_ui_util.cc File chrome/browser/ui/webui/web_ui_util.cc (right): http://codereview.chromium.org/7068007/diff/6002/chrome/browser/ui/webui/web_ui_util.cc#newcode58 chrome/browser/ui/webui/web_ui_util.cc:58: return path.length() > begin ? path.substr(begin, length) : std::string(); ...
9 years, 7 months ago (2011-05-27 17:19:24 UTC) #3
msw
Please take another look; thanks! http://codereview.chromium.org/7068007/diff/6002/chrome/browser/browser_about_handler.cc File chrome/browser/browser_about_handler.cc (right): http://codereview.chromium.org/7068007/diff/6002/chrome/browser/browser_about_handler.cc#newcode113 chrome/browser/browser_about_handler.cc:113: #if defined(OS_WIN) On 2011/05/27 ...
9 years, 6 months ago (2011-05-31 13:34:29 UTC) #4
sky
LGTM http://codereview.chromium.org/7068007/diff/6002/chrome/browser/browser_about_handler.cc File chrome/browser/browser_about_handler.cc (right): http://codereview.chromium.org/7068007/diff/6002/chrome/browser/browser_about_handler.cc#newcode113 chrome/browser/browser_about_handler.cc:113: #if defined(OS_WIN) On 2011/05/27 16:54:40, sky wrote: > ...
9 years, 6 months ago (2011-05-31 17:15:36 UTC) #5
msw
Done! Evan and Adam, please take a look; thanks!
9 years, 6 months ago (2011-05-31 18:43:59 UTC) #6
abarth-chromium
Some minor comments below. Feel free to land without syncing up with me again. http://codereview.chromium.org/7068007/diff/24001/chrome/browser/browser_about_handler.cc ...
9 years, 6 months ago (2011-05-31 19:27:54 UTC) #7
Evan Stade
my parts LGTM
9 years, 6 months ago (2011-05-31 20:26:43 UTC) #8
msw
Thanks! FYI on updates. Also, I updated chrome/browser/extensions/extension_tabs_module.cc to handle new chrome:, chrome://, and about:// ...
9 years, 6 months ago (2011-05-31 20:58:25 UTC) #9
msw
Hey Peter, can you review URLFixerUpper? Eric said he could rubber stamp as owner once ...
9 years, 6 months ago (2011-06-01 00:09:07 UTC) #10
Peter Kasting
Added comments on bug summarizing our discussion in person.
9 years, 6 months ago (2011-06-01 00:45:19 UTC) #11
msw
Please consider this revised CL; high level changes: *Fixup about and chrome URLs in URLFixerUpper::FixupURL. ...
9 years, 6 months ago (2011-06-06 19:15:04 UTC) #12
Peter Kasting
LGTM
9 years, 6 months ago (2011-06-06 22:30:21 UTC) #13
msw
jam - please review content/browser/* willchan - please reivew chrome/browser/net/* Thanks!
9 years, 6 months ago (2011-06-06 23:32:43 UTC) #14
eroman
lgtm on chrome/browser/net/* http://codereview.chromium.org/7068007/diff/38002/chrome/browser/net/url_fixer_upper.h File chrome/browser/net/url_fixer_upper.h (right): http://codereview.chromium.org/7068007/diff/38002/chrome/browser/net/url_fixer_upper.h#newcode44 chrome/browser/net/url_fixer_upper.h:44: // Schemes "about" and "chrome" are ...
9 years, 6 months ago (2011-06-07 00:24:04 UTC) #15
msw
http://codereview.chromium.org/7068007/diff/38002/chrome/browser/net/url_fixer_upper.h File chrome/browser/net/url_fixer_upper.h (right): http://codereview.chromium.org/7068007/diff/38002/chrome/browser/net/url_fixer_upper.h#newcode44 chrome/browser/net/url_fixer_upper.h:44: // Schemes "about" and "chrome" are 'normalized' to "chrome://", ...
9 years, 6 months ago (2011-06-07 00:55:31 UTC) #16
jam
content lgtm
9 years, 6 months ago (2011-06-07 16:48:53 UTC) #17
msw
Nirnimesh: please review chrome/test/functional/special_tabs.py. I applied your codereview.chromium.org/6995057 as we discussed; thanks.
9 years, 6 months ago (2011-06-08 04:12:52 UTC) #18
Nirnimesh
9 years, 6 months ago (2011-06-08 18:04:03 UTC) #19
On 2011/06/08 04:12:52, msw wrote:
> Nirnimesh: please review chrome/test/functional/special_tabs.py.
> I applied your codereview.chromium.org/6995057 as we discussed; thanks.

special_tabs.py LGTM

Powered by Google App Engine
This is Rietveld 408576698