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

Issue 192057: Use "GURL::possibly_invalid_spec()" rather than "GURL::spec()", in case the G... (Closed)

Created:
11 years, 3 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), willchan no longer on Chromium
Visibility:
Public.

Description

Use "GURL::possibly_invalid_spec()" rather than "GURL::spec()", in case the GURL that was passed to URLRequest(const GURL&) is invalid. BUG=http://crbug.com/21423 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25903

Patch Set 1 #

Patch Set 2 : Add missing file #

Patch Set 3 : Make unittest better #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -7 lines) Patch
M net/url_request/url_request.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 2 2 chunks +24 lines, -1 line 0 comments Download
M net/url_request/url_request_view_net_internal_job.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
eroman
11 years, 3 months ago (2009-09-09 22:34:01 UTC) #1
Peter Kasting
(I added brettw because I don't know if this violates some contract)
11 years, 3 months ago (2009-09-09 23:21:06 UTC) #2
brettw
When is this used? URLRequests for invalid URLs should be failing. Should those be getting ...
11 years, 3 months ago (2009-09-09 23:53:22 UTC) #3
eroman
Right, it is expected that we need to handle invalid GURLs here. URLRequest may have ...
11 years, 3 months ago (2009-09-10 00:02:15 UTC) #4
brettw
Then LGTM
11 years, 3 months ago (2009-09-10 00:05:01 UTC) #5
willchan no longer on Chromium
11 years, 3 months ago (2009-09-10 18:53:40 UTC) #6
lgtm

Powered by Google App Engine
This is Rietveld 408576698