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

Issue 16511: If the URL text has no scheme, and starts with ftp., then ... (Closed)

Created:
11 years, 11 months ago by Brian Duff
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

If the URL text has no scheme, and starts with ftp., then default the scheme to ftp: instead of http:. Fixes issue 565. BUG=565

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -10 lines) Patch
M chrome/browser/url_fixer_upper.cc View 1 2 3 4 5 1 chunk +5 lines, -10 lines 0 comments Download
M chrome/browser/url_fixer_upper_unittest.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Brian Duff
11 years, 11 months ago (2009-01-03 23:08:29 UTC) #1
Dean McNamee
http://codereview.chromium.org/16511/diff/1/3 File chrome/browser/url_fixer_upper.cc (right): http://codereview.chromium.org/16511/diff/1/3#newcode297 Line 297: // scheme (e.g. ftp)? We should explain what ...
11 years, 11 months ago (2009-01-04 00:39:18 UTC) #2
Dean McNamee
Also, I'm not familiar with this code, and I don't know what state the text ...
11 years, 11 months ago (2009-01-04 00:41:23 UTC) #3
Brian Duff
For the canonicalization issue: the routine already strips trailing and leading whitespace. I've added a ...
11 years, 11 months ago (2009-01-05 00:48:09 UTC) #4
brettw
LGTM with formatting nit. http://codereview.chromium.org/16511/diff/206/10 File chrome/browser/url_fixer_upper.cc (right): http://codereview.chromium.org/16511/diff/206/10#newcode300 Line 300: if (StartsWith(text, L"ftp.", false)) ...
11 years, 11 months ago (2009-01-05 02:11:05 UTC) #5
Peter Kasting
LGTM with very minor nits http://codereview.chromium.org/16511/diff/206/10 File chrome/browser/url_fixer_upper.cc (right): http://codereview.chromium.org/16511/diff/206/10#newcode295 Line 295: } else { ...
11 years, 11 months ago (2009-01-05 19:24:54 UTC) #6
Brian Duff
http://codereview.chromium.org/16511/diff/206/10 File chrome/browser/url_fixer_upper.cc (right): http://codereview.chromium.org/16511/diff/206/10#newcode295 Line 295: } else { On 2009/01/05 19:24:55, pkasting wrote: ...
11 years, 11 months ago (2009-01-06 05:25:36 UTC) #7
Peter Kasting
http://codereview.chromium.org/16511/diff/14/210 File chrome/browser/url_fixer_upper.cc (right): http://codereview.chromium.org/16511/diff/14/210#newcode290 Line 290: if (!parts->scheme.is_valid() && StartsWith(text, L"ftp.", false)) I would ...
11 years, 11 months ago (2009-01-06 18:29:49 UTC) #8
Brian Duff
http://codereview.chromium.org/16511/diff/14/210 File chrome/browser/url_fixer_upper.cc (right): http://codereview.chromium.org/16511/diff/14/210#newcode290 Line 290: if (!parts->scheme.is_valid() && StartsWith(text, L"ftp.", false)) On 2009/01/06 ...
11 years, 11 months ago (2009-01-07 05:49:03 UTC) #9
Peter Kasting
11 years, 11 months ago (2009-01-07 18:04:33 UTC) #10
LGTM.

Powered by Google App Engine
This is Rietveld 408576698