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

Issue 7647014: Replace whitespace at beginning and end of file with hyphens, rather than silently discarding. (Closed)

Created:
9 years, 4 months ago by kenrb
Modified:
9 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, jshin+watch_chromium.org, brettw-cc_chromium.org, kenrb1
Visibility:
Public.

Description

Replace whitespace at beginning and end of file with hyphens, rather than silently discarding. BUG=90217 TEST=all Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98148

Patch Set 1 #

Patch Set 2 : Changed filename char replacement to percent encoding. #

Total comments: 1

Patch Set 3 : Changed to using hyphen replacement again #

Total comments: 7

Patch Set 4 : Formatting fixes #

Patch Set 5 : Removed redundant function call #

Patch Set 6 : Added unit test, fixed a bug #

Patch Set 7 : Formatting fixup #

Patch Set 8 : Retrying patch set due to Rietveld issues #

Total comments: 3

Patch Set 9 : Changes based on review comments #

Total comments: 1

Patch Set 10 : Rebased to trunk, resolved merge conflict #

Total comments: 1

Patch Set 11 : Trying again, seem to be merge issues on try server #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -6 lines) Patch
M net/base/net_util.cc View 1 2 3 4 5 6 7 8 9 2 chunks +31 lines, -2 lines 0 comments Download
M net/base/net_util_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +21 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
jschuh
Here's a simpler idea. Forget about the escaping. On Windows, just keep track of how ...
9 years, 4 months ago (2011-08-17 14:38:45 UTC) #1
kenrb1
@jschuh: Does it change anything to know that % encoding is what IE does? As ...
9 years, 4 months ago (2011-08-17 14:49:54 UTC) #2
jschuh
On 2011/08/17 14:49:54, kenrb_google.com wrote: > @jschuh: Does it change anything to know that % ...
9 years, 4 months ago (2011-08-17 16:32:47 UTC) #3
kenrb
On 2011/08/17 16:32:47, Justin Schuh wrote: > I think it's fine to use the - ...
9 years, 4 months ago (2011-08-17 19:28:42 UTC) #4
jschuh
http://codereview.chromium.org/7647014/diff/3003/net/base/net_util.cc File net/base/net_util.cc (right): http://codereview.chromium.org/7647014/diff/3003/net/base/net_util.cc#newcode163 net/base/net_util.cc:163: const typename STR::value_type Formatting is all messed up here. ...
9 years, 4 months ago (2011-08-17 20:02:48 UTC) #5
kenrb
http://codereview.chromium.org/7647014/diff/3003/net/base/net_util.cc File net/base/net_util.cc (right): http://codereview.chromium.org/7647014/diff/3003/net/base/net_util.cc#newcode1459 net/base/net_util.cc:1459: trimmed_trailing_character_count += CountTrailingChars(filename, " ."); On 2011/08/17 20:02:48, Justin ...
9 years, 4 months ago (2011-08-17 20:25:51 UTC) #6
jschuh
http://codereview.chromium.org/7647014/diff/3003/net/base/net_util.cc File net/base/net_util.cc (right): http://codereview.chromium.org/7647014/diff/3003/net/base/net_util.cc#newcode1459 net/base/net_util.cc:1459: trimmed_trailing_character_count += CountTrailingChars(filename, " ."); On 2011/08/17 20:25:51, kenrb ...
9 years, 4 months ago (2011-08-17 20:32:46 UTC) #7
kenrb
On 2011/08/17 20:32:46, Justin Schuh wrote: > http://codereview.chromium.org/7647014/diff/3003/net/base/net_util.cc > File net/base/net_util.cc (right): > > http://codereview.chromium.org/7647014/diff/3003/net/base/net_util.cc#newcode1459 ...
9 years, 4 months ago (2011-08-17 20:59:36 UTC) #8
jschuh
On 2011/08/17 20:59:36, kenrb wrote: > On 2011/08/17 20:32:46, Justin Schuh wrote: > > http://codereview.chromium.org/7647014/diff/3003/net/base/net_util.cc ...
9 years, 4 months ago (2011-08-17 21:10:54 UTC) #9
jschuh
Eric, mind a review on the content side?
9 years, 4 months ago (2011-08-17 21:11:32 UTC) #10
jschuh
I'm running the trybots here: http://codereview.chromium.org/7631028 Eric, you probably want to hold off your review ...
9 years, 4 months ago (2011-08-17 21:19:36 UTC) #11
kenrb1
Eric, can you please have a look at this now? I'll also cc you on ...
9 years, 4 months ago (2011-08-18 15:56:43 UTC) #12
eroman
I have been getting server errors from rietveld when trying to view this change (for ...
9 years, 4 months ago (2011-08-19 01:53:29 UTC) #13
kenrb
On 2011/08/19 01:53:29, eroman wrote: > I have been getting server errors from rietveld when ...
9 years, 4 months ago (2011-08-19 13:43:43 UTC) #14
eroman
Ah good it's working now! Sorry for the delay, will post comments shortly.
9 years, 4 months ago (2011-08-19 18:05:32 UTC) #15
eroman
LGTM. Adding Asanka in case he has any comments (since I haven't worked in this ...
9 years, 4 months ago (2011-08-19 18:29:09 UTC) #16
kenrb
On 2011/08/19 18:29:09, eroman wrote: > LGTM. > > Adding Asanka in case he has ...
9 years, 4 months ago (2011-08-19 18:56:40 UTC) #17
asanka
LGTM. But you will have to change this substantially if you rebase behind http://codereview.chromium.org/7607013/, assuming ...
9 years, 4 months ago (2011-08-19 19:51:19 UTC) #18
kenrb
On 2011/08/19 19:51:19, asanka wrote: > LGTM. > > But you will have to change ...
9 years, 4 months ago (2011-08-19 20:30:16 UTC) #19
asanka
On 2011/08/19 20:30:16, Ken Buchanan wrote: http://codereview.chromium.org/7647014/diff/15002/net/base/net_util.cc#newcode162 > > net/base/net_util.cc:162: typename STR::size_type CountTrailingChars( > > ...
9 years, 4 months ago (2011-08-19 21:15:43 UTC) #20
kenrb
asanka and eroman: Can either or both of you please have another look? Some changes ...
9 years, 4 months ago (2011-08-22 16:05:24 UTC) #21
jschuh
On 2011/08/22 16:05:24, Ken Buchanan wrote: > asanka and eroman: > > Can either or ...
9 years, 4 months ago (2011-08-22 16:32:24 UTC) #22
asanka
Still LGTM. http://codereview.chromium.org/7647014/diff/19001/net/base/net_util.cc File net/base/net_util.cc (right): http://codereview.chromium.org/7647014/diff/19001/net/base/net_util.cc#newcode1492 net/base/net_util.cc:1492: // e.g. Gmail might think evil.exe. is ...
9 years, 4 months ago (2011-08-22 18:01:31 UTC) #23
kenrb
On 2011/08/22 18:01:31, asanka wrote: > What about ".evil.exe"? That shouldn't evade any filters, because ...
9 years, 4 months ago (2011-08-22 18:07:42 UTC) #24
asanka
On 2011/08/22 18:07:42, Ken Buchanan wrote: > On 2011/08/22 18:01:31, asanka wrote: > > What ...
9 years, 4 months ago (2011-08-22 20:50:32 UTC) #25
commit-bot: I haz the power
9 years, 4 months ago (2011-08-24 23:58:23 UTC) #26
Change committed as 98148

Powered by Google App Engine
This is Rietveld 408576698