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

Issue 20219: Fixes Issue 7377: Regression: Omnibox trims URL ending with 0x85... (Closed)

Created:
11 years, 10 months ago by Hironori Bono
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fixes Issue 7377: Regression: Omnibox trims URL ending with 0x85 To fix this issue, this change adds a new function TrimWhitespaceUTF8(), which trims space characters (including non-printable characters and broken UTF-8 characters) from either end of a UTF-8 string. Please feel free to give me your comments since I'm not sure this implimentation is correct. (Maybe this implementation trims too aggressively.) BUG=7377 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=10456

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 1

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 11

Patch Set 12 : '' #

Patch Set 13 : '' #

Total comments: 2

Patch Set 14 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -8 lines) Patch
M base/string_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +16 lines, -3 lines 0 comments Download
M base/string_util.cc View 7 8 9 10 11 12 13 2 chunks +23 lines, -3 lines 0 comments Download
M base/string_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +46 lines, -1 line 0 comments Download
M build/googleurl.xcodeproj/project.pbxproj View 13 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/net/url_fixer_upper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/url_fixer_upper_unittest.cc View 9 10 11 12 13 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Hironori Bono
11 years, 10 months ago (2009-02-10 10:50:37 UTC) #1
Evan Martin
I will leave this for Jungshik to review, since he knows more about this than ...
11 years, 10 months ago (2009-02-10 20:38:42 UTC) #2
jungshik at Google
http://codereview.chromium.org/20219/diff/18/1007 File base/string_util.h (right): http://codereview.chromium.org/20219/diff/18/1007#newcode145 Line 145: TrimPositions positions, I think this needs to be ...
11 years, 10 months ago (2009-02-11 22:04:54 UTC) #3
Hironori Bono
Thank you for your review and comments. http://codereview.chromium.org/20219/diff/18/1008 File base/string_util_icu.cc (right): http://codereview.chromium.org/20219/diff/18/1008#newcode544 Line 544: } ...
11 years, 10 months ago (2009-02-12 07:10:56 UTC) #4
jungshik at Google
On 2009/02/12 07:10:56, hbono wrote: > Unfortunately, I noticed this implementation did not run so ...
11 years, 10 months ago (2009-02-12 22:23:03 UTC) #5
jungshik at Google
I'm pulling in Peter. My gut feeling is that 0.49 us vs 4.9 us in ...
11 years, 10 months ago (2009-02-13 22:49:46 UTC) #6
Peter Kasting
On 2009/02/13 22:49:46, Jungshik Shin wrote: > I'm pulling in Peter. > > My gut ...
11 years, 10 months ago (2009-02-13 22:57:30 UTC) #7
Hironori Bono
To read comments from jshin and pkasting, I'm convinced this TrimWhiteSpaceUTF8() function does not have ...
11 years, 10 months ago (2009-02-17 08:58:06 UTC) #8
jungshik at Google
http://codereview.chromium.org/20219/diff/1048/73 File base/string_util.cc (right): http://codereview.chromium.org/20219/diff/1048/73#newcode327 Line 327: 0x200D, // Zero Width Joiner kWhitespaceWide is also ...
11 years, 10 months ago (2009-02-17 18:28:11 UTC) #9
Hironori Bono
Thank you for your review and sorry for my slow update. When I applied all ...
11 years, 10 months ago (2009-02-19 05:12:07 UTC) #10
jungshik at Google
11 years, 10 months ago (2009-02-19 18:04:05 UTC) #11
LGTM !

When landing, please take care of two minor nits (in comments). Thank you.

http://codereview.chromium.org/20219/diff/2001/2002
File base/string_util_unittest.cc (right):

http://codereview.chromium.org/20219/diff/2001/2002#newcode96
Line 96: // UTF-8 strings that end with an ISO-8859 next line (0x85).
UTF-8 strings that end with 0x85 (NEL in ISO-8859).

http://codereview.chromium.org/20219/diff/2001/2002#newcode101
Line 101: // UTF-8 strings that end with a non-break space (0xA0).
UTF-8 strings that end with 0xA0 (non-break space in ISO-8859-1).

Powered by Google App Engine
This is Rietveld 408576698