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

Issue 12620: Append a trailing slash on file directory URLs. Thus a link to /directory wil... (Closed)

Created:
12 years, 1 month ago by Evan Stade
Modified:
9 years, 6 months ago
Reviewers:
tony
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Append a trailing slash on file directory URLs. Thus a link to /directory will work just as well as a link to /directory/ Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=5999

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -35 lines) Patch
M base/file_util.h View 1 2 1 chunk +8 lines, -3 lines 0 comments Download
M base/file_util.cc View 1 2 3 4 3 chunks +26 lines, -9 lines 0 comments Download
M net/url_request/url_request_file_dir_job.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_file_dir_job.cc View 5 1 chunk +21 lines, -0 lines 1 comment Download
M net/url_request/url_request_file_job.cc View 1 2 3 4 3 chunks +5 lines, -21 lines 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Evan Stade
http://codereview.chromium.org/12620/diff/10/204 File net/url_request/url_request_file_job.cc (right): http://codereview.chromium.org/12620/diff/10/204#newcode76 Line 76: file_util::EnsureEndsWithSeparator(&file_path)) To me it feels like the EnsureEndsWithSeparator ...
12 years, 1 month ago (2008-11-25 00:48:42 UTC) #1
tony
http://codereview.chromium.org/12620/diff/10/203 File base/file_util.cc (right): http://codereview.chromium.org/12620/diff/10/203#newcode49 Line 49: (path)[path.length() - 1] == kPathSeparator); Nit: The extra ...
12 years, 1 month ago (2008-11-25 01:07:23 UTC) #2
Evan Stade
I'm working on another changelist to get rid of file_util::kPathSeparator http://codereview.chromium.org/12620/diff/10/203 File base/file_util.cc (right): http://codereview.chromium.org/12620/diff/10/203#newcode49 ...
12 years, 1 month ago (2008-11-25 02:00:18 UTC) #3
tony
LGTM
12 years ago (2008-11-25 16:19:55 UTC) #4
Evan Stade
as it turns out, a little more work is needed to make sure the URL ...
12 years ago (2008-11-25 20:54:46 UTC) #5
tony
12 years ago (2008-11-25 21:42:52 UTC) #6
LGTM with the following comment addressed.

http://codereview.chromium.org/12620/diff/231/26
File net/url_request/url_request_file_dir_job.cc (right):

http://codereview.chromium.org/12620/diff/231/26#newcode207
Line 207: if (path[path.size() - 1] != '/') {
Does path always return at least '/' or do you need to check the size?  If it
always returns something of len >= 1, can you add a comment as such?

Powered by Google App Engine
This is Rietveld 408576698