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

Issue 1052273005: Fix DownloadPermissionRequest crash when host_ disappears (Closed)

Created:
5 years, 8 months ago by felt
Modified:
5 years, 8 months ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, asanka
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix DownloadPermissionRequest crash when host_ disappears A DownloadPermissionRequest may outlive its |host_|. If GetRequestingHostname is called after the |host_| is gone, it still needs to return a valid URL. This CL creates a |request_url_| member variable for DownloadPermissionRequest, so that the URL doesn't die when |host_| dies. BUG=461752 Committed: https://crrev.com/239d7338d41a731b66a53aa145711f2c5d8009b1 Cr-Commit-Position: refs/heads/master@{#324302}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
M chrome/browser/download/download_permission_request.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/download/download_permission_request.cc View 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
felt
rdsmith, PTAL?
5 years, 8 months ago (2015-04-07 17:58:01 UTC) #2
Randy Smith (Not in Mondays)
I'll try to review this within the next day or so (tomorrow, probably, as I'm ...
5 years, 8 months ago (2015-04-07 18:09:15 UTC) #3
Randy Smith (Not in Mondays)
Actually, just in case you know the code better than I do (wouldn't be hard): ...
5 years, 8 months ago (2015-04-07 18:10:49 UTC) #4
felt
On 2015/04/07 18:10:49, rdsmith wrote: > Actually, just in case you know the code better ...
5 years, 8 months ago (2015-04-07 20:08:27 UTC) #5
felt
On 2015/04/07 20:08:27, felt wrote: > On 2015/04/07 18:10:49, rdsmith wrote: > > Actually, just ...
5 years, 8 months ago (2015-04-07 20:09:38 UTC) #6
Randy Smith (Not in Mondays)
That's plausible enough to me, based on my memories of the code, to LGTM the ...
5 years, 8 months ago (2015-04-08 16:08:55 UTC) #7
felt
On 2015/04/08 16:08:55, rdsmith wrote: > That's plausible enough to me, based on my memories ...
5 years, 8 months ago (2015-04-08 19:55:34 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1052273005/1
5 years, 8 months ago (2015-04-08 19:58:17 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 8 months ago (2015-04-08 23:03:39 UTC) #11
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 23:04:23 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/239d7338d41a731b66a53aa145711f2c5d8009b1
Cr-Commit-Position: refs/heads/master@{#324302}

Powered by Google App Engine
This is Rietveld 408576698