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

Issue 8414007: Rearrange Should*Download delegate calls to be more useful and intuitive. (Closed)

Created:
9 years, 1 month ago by Randy Smith (Not in Mondays)
Modified:
9 years, 1 month ago
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., noelutz, Mihai Parparita -not on Chrome
Visibility:
Public.

Description

Rearrange Should*Download delegate calls to be more useful and intuitive. This involves killing the code in ShouldOpenDownload (vestigal), renaming ShouldCompleteDownload to ShouldOpenDownload, and creating a new ShouldCompleteDownload delegate method to allow blocking download completion before final rename. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108141

Patch Set 1 #

Patch Set 2 : Tweaked comment. #

Total comments: 2

Patch Set 3 : Incorporate Asanka's comment. #

Patch Set 4 : Merged to TOT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -30 lines) Patch
M chrome/browser/download/chrome_download_manager_delegate.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 3 chunks +5 lines, -9 lines 0 comments Download
M content/browser/download/download_item.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/download/download_item.cc View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
M content/browser/download/download_manager.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/download/mock_download_manager_delegate.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/mock_download_manager_delegate.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/browser/download_manager_delegate.h View 1 chunk +14 lines, -7 lines 0 comments Download
M content/shell/shell_download_manager_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/shell_download_manager_delegate.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Randy Smith (Not in Mondays)
Asanka: Could you review the download portions of this? (*/browser/download/*). John: Could you review everything ...
9 years, 1 month ago (2011-10-28 18:05:05 UTC) #1
Randy Smith (Not in Mondays)
Whoops, one more reviewer: Mihai, could you confirm that the removal of the previously existent ...
9 years, 1 month ago (2011-10-28 18:06:13 UTC) #2
jam
rubberstamp lgtm, you know this code much better than me :)
9 years, 1 month ago (2011-10-28 18:28:29 UTC) #3
asanka
*/browser/download/* LGTM http://codereview.chromium.org/8414007/diff/12/content/browser/download/download_manager.cc File content/browser/download/download_manager.cc (right): http://codereview.chromium.org/8414007/diff/12/content/browser/download/download_manager.cc#newcode498 content/browser/download/download_manager.cc:498: << download->DebugString(false); Very minor nit: Should this ...
9 years, 1 month ago (2011-10-28 19:22:19 UTC) #4
Mihai Parparita -not on Chrome
Sam is a much more qualified reviewer than I am (I haven't looked at how ...
9 years, 1 month ago (2011-10-28 19:23:47 UTC) #5
Sam Kerner (Chrome)
LGTM
9 years, 1 month ago (2011-10-28 19:32:47 UTC) #6
Randy Smith (Not in Mondays)
Thanks, all! http://codereview.chromium.org/8414007/diff/12/content/browser/download/download_manager.cc File content/browser/download/download_manager.cc (right): http://codereview.chromium.org/8414007/diff/12/content/browser/download/download_manager.cc#newcode498 content/browser/download/download_manager.cc:498: << download->DebugString(false); On 2011/10/28 19:22:19, asanka wrote: ...
9 years, 1 month ago (2011-10-29 23:10:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/8414007/4002
9 years, 1 month ago (2011-10-31 15:58:07 UTC) #8
commit-bot: I haz the power
Can't apply patch for file chrome/browser/download/chrome_download_manager_delegate.cc. While running patch -p1 --forward --force; patching file chrome/browser/download/chrome_download_manager_delegate.cc ...
9 years, 1 month ago (2011-10-31 15:58:10 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/8414007/9001
9 years, 1 month ago (2011-11-01 17:32:12 UTC) #10
commit-bot: I haz the power
9 years, 1 month ago (2011-11-01 18:50:25 UTC) #11
Change committed as 108141

Powered by Google App Engine
This is Rietveld 408576698