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

Issue 8519008: Create a Null DownloadRequestHandle for use by SavePackage DownloadItems. (Closed)

Created:
9 years, 1 month ago by Randy Smith (Not in Mondays)
Modified:
9 years, 1 month ago
Reviewers:
cbentzel, benjhayden
CC:
chromium-reviews, jam, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Create a Null DownloadRequestHandle for use by SavePackage DownloadItems. This will mean that when things like cancel are done on downloads resulting from a Save Page As ..., chrome will not crash. They also won't do anything, but that's the previous (broken :-{) behavior. BUG=103590 R=cbentzel@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110216

Patch Set 1 #

Total comments: 1

Patch Set 2 : Merged to TOT. #

Total comments: 4

Patch Set 3 : Added comment explaining null check. #

Patch Set 4 : Merged to TOT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -1 line) Patch
M content/browser/download/download_item.cc View 1 2 3 chunks +31 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Randy Smith (Not in Mondays)
Chris, PTAL. A couple of notes about design choices: * I believe that the root ...
9 years, 1 month ago (2011-11-10 16:32:18 UTC) #1
Randy Smith (Not in Mondays)
Ben, could you take a look? Chris' and my schedules over the past two days ...
9 years, 1 month ago (2011-11-11 16:13:36 UTC) #2
benjhayden
http://codereview.chromium.org/8519008/diff/1/content/browser/download/download_item.cc File content/browser/download/download_item.cc (right): http://codereview.chromium.org/8519008/diff/1/content/browser/download/download_item.cc#newcode736 content/browser/download/download_item.cc:736: request_handle_->CancelRequest(); Why not just if(request_handle_) here?
9 years, 1 month ago (2011-11-11 16:30:59 UTC) #3
Randy Smith (Not in Mondays)
On 2011/11/11 16:30:59, b s h wrote: > http://codereview.chromium.org/8519008/diff/1/content/browser/download/download_item.cc > File content/browser/download/download_item.cc (right): > > ...
9 years, 1 month ago (2011-11-11 16:35:16 UTC) #4
benjhayden
LGTM I was wondering how many other places there might be that just needed an ...
9 years, 1 month ago (2011-11-11 16:39:15 UTC) #5
cbentzel
LGTM http://codereview.chromium.org/8519008/diff/7001/content/browser/download/download_item.cc File content/browser/download/download_item.cc (right): http://codereview.chromium.org/8519008/diff/7001/content/browser/download/download_item.cc#newcode713 content/browser/download/download_item.cc:713: if (request_handle_.get()) Can you remove the NULL check ...
9 years, 1 month ago (2011-11-15 11:47:56 UTC) #6
Randy Smith (Not in Mondays)
http://codereview.chromium.org/8519008/diff/7001/content/browser/download/download_item.cc File content/browser/download/download_item.cc (right): http://codereview.chromium.org/8519008/diff/7001/content/browser/download/download_item.cc#newcode713 content/browser/download/download_item.cc:713: if (request_handle_.get()) On 2011/11/15 11:47:56, cbentzel wrote: > Can ...
9 years, 1 month ago (2011-11-15 19:25:39 UTC) #7
cbentzel
http://codereview.chromium.org/8519008/diff/7001/content/browser/download/download_item.cc File content/browser/download/download_item.cc (right): http://codereview.chromium.org/8519008/diff/7001/content/browser/download/download_item.cc#newcode713 content/browser/download/download_item.cc:713: if (request_handle_.get()) On 2011/11/15 19:25:39, rdsmith wrote: > On ...
9 years, 1 month ago (2011-11-15 19:53:23 UTC) #8
Randy Smith (Not in Mondays)
http://codereview.chromium.org/8519008/diff/7001/content/browser/download/download_item.cc File content/browser/download/download_item.cc (right): http://codereview.chromium.org/8519008/diff/7001/content/browser/download/download_item.cc#newcode713 content/browser/download/download_item.cc:713: if (request_handle_.get()) On 2011/11/15 19:53:23, cbentzel wrote: > On ...
9 years, 1 month ago (2011-11-15 21:49:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/8519008/10002
9 years, 1 month ago (2011-11-15 22:20:34 UTC) #10
commit-bot: I haz the power
9 years, 1 month ago (2011-11-16 00:00:47 UTC) #11
Change committed as 110216

Powered by Google App Engine
This is Rietveld 408576698