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

Issue 10827207: Mountain Lion: use the system download progress. (Closed)

Created:
8 years, 4 months ago by Avi (use Gerrit)
Modified:
8 years, 4 months ago
CC:
chromium-reviews, erikwright (departed), rdsmith+dwatch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Unify and clean up system download notifications, add Mountain Lion support. BUG=138962 TEST=as in bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151195

Patch Set 1 #

Patch Set 2 : tweaks #

Patch Set 3 : rephrase #

Patch Set 4 : fixed up and ready to go #

Total comments: 33

Patch Set 5 : fixes #

Patch Set 6 : renaming methods, moving stuff into it #

Patch Set 7 : with windows #

Patch Set 8 : rebase only #

Total comments: 2

Patch Set 9 : only notify when complete #

Patch Set 10 : fix #

Total comments: 1

Patch Set 11 : v3 #

Patch Set 12 : v3.1 #

Total comments: 4

Patch Set 13 : moar comments #

Patch Set 14 : test #

Total comments: 2

Patch Set 15 : final? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+531 lines, -294 lines) Patch
M base/supports_user_data.h View 1 chunk +1 line, -0 lines 0 comments Download
M base/supports_user_data.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 2 chunks +0 lines, -9 lines 0 comments Download
D chrome/browser/download/download_completion_observer_win.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -42 lines 0 comments Download
D chrome/browser/download/download_completion_observer_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -111 lines 0 comments Download
M chrome/browser/download/download_status_updater.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/browser/download/download_status_updater.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +21 lines, -12 lines 0 comments Download
A chrome/browser/download/download_status_updater_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/browser/download/download_status_updater_mac.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +287 lines, -0 lines 0 comments Download
M chrome/browser/download/download_status_updater_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +68 lines, -17 lines 0 comments Download
A chrome/browser/download/download_status_updater_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +123 lines, -0 lines 0 comments Download
M chrome/browser/download/download_util.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/download/download_util.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +0 lines, -58 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_mac.mm View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_util_mac.h View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_util_mac.mm View 1 2 3 4 5 6 7 8 9 10 3 chunks +0 lines, -24 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Avi (use Gerrit)
Nico: all the Mac stuff Randy: all the download stuff https://chromiumcodereview.appspot.com/10827207/diff/6001/chrome/browser/download/download_status_updater_mac.mm File chrome/browser/download/download_status_updater_mac.mm (right): https://chromiumcodereview.appspot.com/10827207/diff/6001/chrome/browser/download/download_status_updater_mac.mm#newcode120 ...
8 years, 4 months ago (2012-08-08 19:34:27 UTC) #1
Nico
nice!! https://chromiumcodereview.appspot.com/10827207/diff/6001/chrome/browser/download/download_status_updater.h File chrome/browser/download/download_status_updater.h (right): https://chromiumcodereview.appspot.com/10827207/diff/6001/chrome/browser/download/download_status_updater.h#newcode54 chrome/browser/download/download_status_updater.h:54: void UpdateDownloadProgressForItemRemoved(content::DownloadItem* download); Maybe add a small test ...
8 years, 4 months ago (2012-08-08 20:00:58 UTC) #2
Randy Smith (Not in Mondays)
LGTM for this as written, but I'm finding myself again musing on alternative implementations. Maybe ...
8 years, 4 months ago (2012-08-08 20:39:40 UTC) #3
Avi (use Gerrit)
Nico: addressed all your issues except the one that asked for a test. I'll get ...
8 years, 4 months ago (2012-08-08 21:16:20 UTC) #4
Avi (use Gerrit)
Oh, and if I port their CL to be atop DownloadStatusUpdater, and I write the ...
8 years, 4 months ago (2012-08-08 21:19:30 UTC) #5
Nico
LGTM! https://chromiumcodereview.appspot.com/10827207/diff/6001/chrome/browser/download/download_status_updater_mac.mm File chrome/browser/download/download_status_updater_mac.mm (right): https://chromiumcodereview.appspot.com/10827207/diff/6001/chrome/browser/download/download_status_updater_mac.mm#newcode143 chrome/browser/download/download_status_updater_mac.mm:143: class NSProgressUserData : public base::SupportsUserData::Data { On 2012/08/08 ...
8 years, 4 months ago (2012-08-08 21:21:38 UTC) #6
Avi (use Gerrit)
https://chromiumcodereview.appspot.com/10827207/diff/6001/chrome/browser/download/download_status_updater_mac.mm File chrome/browser/download/download_status_updater_mac.mm (right): https://chromiumcodereview.appspot.com/10827207/diff/6001/chrome/browser/download/download_status_updater_mac.mm#newcode143 chrome/browser/download/download_status_updater_mac.mm:143: class NSProgressUserData : public base::SupportsUserData::Data { On 2012/08/08 21:21:38, ...
8 years, 4 months ago (2012-08-08 21:22:46 UTC) #7
Nico
https://chromiumcodereview.appspot.com/10827207/diff/6001/chrome/browser/download/download_status_updater_mac.mm File chrome/browser/download/download_status_updater_mac.mm (right): https://chromiumcodereview.appspot.com/10827207/diff/6001/chrome/browser/download/download_status_updater_mac.mm#newcode143 chrome/browser/download/download_status_updater_mac.mm:143: class NSProgressUserData : public base::SupportsUserData::Data { On 2012/08/08 21:22:46, ...
8 years, 4 months ago (2012-08-08 21:27:23 UTC) #8
Randy Smith (Not in Mondays)
I definitely think we should be doing the same thing for both situations. If you ...
8 years, 4 months ago (2012-08-08 21:27:42 UTC) #9
Avi (use Gerrit)
Nico: Mac stuff; since you last saw it: moved download finished code here. Rando: Download ...
8 years, 4 months ago (2012-08-09 15:06:15 UTC) #10
Nico
mac still looks fine
8 years, 4 months ago (2012-08-09 15:11:01 UTC) #11
asanka
https://chromiumcodereview.appspot.com/10827207/diff/14001/chrome/browser/download/download_status_updater.cc File chrome/browser/download/download_status_updater.cc (right): https://chromiumcodereview.appspot.com/10827207/diff/14001/chrome/browser/download/download_status_updater.cc#newcode109 chrome/browser/download/download_status_updater.cc:109: UpdateDownloadProgressForItemCompleted(download); This is going to be called for states ...
8 years, 4 months ago (2012-08-09 15:23:24 UTC) #12
Avi (use Gerrit)
https://chromiumcodereview.appspot.com/10827207/diff/14001/chrome/browser/download/download_status_updater.cc File chrome/browser/download/download_status_updater.cc (right): https://chromiumcodereview.appspot.com/10827207/diff/14001/chrome/browser/download/download_status_updater.cc#newcode109 chrome/browser/download/download_status_updater.cc:109: UpdateDownloadProgressForItemCompleted(download); Oops. Fixed.
8 years, 4 months ago (2012-08-09 19:04:23 UTC) #13
asanka
download_status_updater_win.* LGTM
8 years, 4 months ago (2012-08-09 19:35:21 UTC) #14
Randy Smith (Not in Mondays)
http://codereview.chromium.org/10827207/diff/13018/chrome/browser/download/download_status_updater_unittest.cc File chrome/browser/download/download_status_updater_unittest.cc (right): http://codereview.chromium.org/10827207/diff/13018/chrome/browser/download/download_status_updater_unittest.cc#newcode264 chrome/browser/download/download_status_updater_unittest.cc:264: EXPECT_GE(updater_->GetStartedCount(), orig_started); Why are these GE rather than GT ...
8 years, 4 months ago (2012-08-09 20:12:25 UTC) #15
Avi (use Gerrit)
You are right, those should be GT. As discussed, this test is moot :(
8 years, 4 months ago (2012-08-09 20:29:30 UTC) #16
Avi (use Gerrit)
New version, new connection to the status updater. Elliot, you get gtk. Everyone else, you ...
8 years, 4 months ago (2012-08-10 17:43:04 UTC) #17
Elliot Glaysher
gtk lgtm
8 years, 4 months ago (2012-08-10 18:17:27 UTC) #18
Randy Smith (Not in Mondays)
Could you do me a favor and either: a) Add a note at DownloadItem::Observer::OnDownloadDestroyed() saying ...
8 years, 4 months ago (2012-08-10 18:38:44 UTC) #19
Randy Smith (Not in Mondays)
Sorry, should also have said: Reviewed download_status_updater{.h,.cc._unittest.cc}, download_util.*, supports_user_data.* (though not OWNER). Left platform specific ...
8 years, 4 months ago (2012-08-10 18:40:44 UTC) #20
Avi (use Gerrit)
(Pondering how to test this; would like to land this.) http://codereview.chromium.org/10827207/diff/14004/chrome/browser/download/download_status_updater.cc File chrome/browser/download/download_status_updater.cc (right): http://codereview.chromium.org/10827207/diff/14004/chrome/browser/download/download_status_updater.cc#newcode99 ...
8 years, 4 months ago (2012-08-10 19:25:43 UTC) #21
Randy Smith (Not in Mondays)
In terms of testing, you could create a variant of OneManagerManyItems that confirmed at each ...
8 years, 4 months ago (2012-08-10 19:35:14 UTC) #22
Avi (use Gerrit)
Added a test. Randy: is the download code and the test satisfactory? Nico: is the ...
8 years, 4 months ago (2012-08-10 20:20:10 UTC) #23
Nico
mac still lgtm
8 years, 4 months ago (2012-08-10 20:24:31 UTC) #24
Randy Smith (Not in Mondays)
All files I was mentioning as reviewing earlier LGTM. Avi, should have said earlier: Asanka's ...
8 years, 4 months ago (2012-08-10 20:35:52 UTC) #25
Randy Smith (Not in Mondays)
download_status_updater_win.* LGTM. I'm not a windows expert, but I think combined with Asanka's earlier LGTM ...
8 years, 4 months ago (2012-08-10 20:42:08 UTC) #26
Avi (use Gerrit)
On 2012/08/10 20:42:08, rdsmith wrote: > download_status_updater_win.* LGTM. I'm not a windows expert, but I ...
8 years, 4 months ago (2012-08-10 21:00:37 UTC) #27
asanka
download_status_updater_win.* LGTM. Thanks! https://chromiumcodereview.appspot.com/10827207/diff/1012/chrome/browser/download/download_status_updater.cc File chrome/browser/download/download_status_updater.cc (right): https://chromiumcodereview.appspot.com/10827207/diff/1012/chrome/browser/download/download_status_updater.cc#newcode99 chrome/browser/download/download_status_updater.cc:99: #if defined(USE_AURA) || defined(ANDROID) defined(OS_ANDROID)?
8 years, 4 months ago (2012-08-11 05:29:20 UTC) #28
Avi (use Gerrit)
http://codereview.chromium.org/10827207/diff/1012/chrome/browser/download/download_status_updater.cc File chrome/browser/download/download_status_updater.cc (right): http://codereview.chromium.org/10827207/diff/1012/chrome/browser/download/download_status_updater.cc#newcode99 chrome/browser/download/download_status_updater.cc:99: #if defined(USE_AURA) || defined(ANDROID) On 2012/08/11 05:29:20, asanka wrote: ...
8 years, 4 months ago (2012-08-11 16:29:03 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/10827207/5040
8 years, 4 months ago (2012-08-11 16:29:15 UTC) #30
commit-bot: I haz the power
Presubmit check for 10827207-5040 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-11 16:29:21 UTC) #31
Avi (use Gerrit)
Brett: OWNER stamp for base?
8 years, 4 months ago (2012-08-11 16:33:34 UTC) #32
brettw
base lgtm
8 years, 4 months ago (2012-08-11 17:12:16 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/10827207/5040
8 years, 4 months ago (2012-08-11 17:17:26 UTC) #34
commit-bot: I haz the power
8 years, 4 months ago (2012-08-12 02:25:15 UTC) #35
Change committed as 151195

Powered by Google App Engine
This is Rietveld 408576698