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

Issue 1005393003: [Download Notification] Use NotificationUIManager instead of MessageCenter (Closed)

Created:
5 years, 9 months ago by yoshiki
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

[Download Notification] Use NotificationUIManager instead of MessageCenter Direct use of message_center::MessageCenter may cause some problems (eg. crbug.com/469622) because it is not aware of profie. This patch changes the code to use NotificationUIManager, which is a higher layer wrapper and is aware of profile, instead of message_center::MessageCenter, which is on lower layer and isn't aware of profile. BUG=469622 TEST=manually tested Committed: https://crrev.com/365ac4c9486e5f9963b06de940809189011d84d3 Cr-Commit-Position: refs/heads/master@{#325404}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Adressed comment. #

Patch Set 3 : Use NotificationUIManager instead of message_center::MessageCenter #

Total comments: 7

Patch Set 4 : Addressed the comments #

Patch Set 5 : Do not stop ongoing download when closed and Add the "Cancel" button #

Total comments: 4

Patch Set 6 : Remove unused code #

Total comments: 6

Patch Set 7 : Add the detailed context for the temporary image #

Patch Set 8 : Addressed the comments #

Total comments: 4

Patch Set 9 : Addressed the comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -141 lines) Patch
M chrome/browser/download/download_commands.cc View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/download/notification/download_notification_item.h View 1 2 3 4 5 6 7 8 5 chunks +28 lines, -19 lines 1 comment Download
M chrome/browser/download/notification/download_notification_item.cc View 1 2 3 4 11 chunks +48 lines, -84 lines 0 comments Download
M chrome/browser/download/notification/download_notification_item_unittest.cc View 1 2 3 4 7 chunks +59 lines, -33 lines 1 comment Download
M chrome/browser/download/notification/download_notification_manager.h View 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/download/notification/download_notification_manager.cc View 1 2 4 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/notifications/notification_test_util.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (8 generated)
yoshiki
Asanka, PTAL. Thanks.
5 years, 9 months ago (2015-03-24 17:04:43 UTC) #2
yoshiki
Asanka, PTAL. Thanks.
5 years, 9 months ago (2015-03-24 17:04:44 UTC) #3
asanka
https://codereview.chromium.org/1005393003/diff/1/chrome/browser/download/notification/download_notification_item_unittest.cc File chrome/browser/download/notification/download_notification_item_unittest.cc (right): https://codereview.chromium.org/1005393003/diff/1/chrome/browser/download/notification/download_notification_item_unittest.cc#newcode128 chrome/browser/download/notification/download_notification_item_unittest.cc:128: ASSERT_TRUE(profile_manager.SetUp()); Move the TestingProfileManager construction and SetUp() call to ...
5 years, 9 months ago (2015-03-24 18:36:15 UTC) #4
yoshiki
Asanka, PTAL. Thanks. https://codereview.chromium.org/1005393003/diff/1/chrome/browser/download/notification/download_notification_item_unittest.cc File chrome/browser/download/notification/download_notification_item_unittest.cc (right): https://codereview.chromium.org/1005393003/diff/1/chrome/browser/download/notification/download_notification_item_unittest.cc#newcode128 chrome/browser/download/notification/download_notification_item_unittest.cc:128: ASSERT_TRUE(profile_manager.SetUp()); On 2015/03/24 18:36:15, asanka wrote: ...
5 years, 9 months ago (2015-03-25 05:30:25 UTC) #5
asanka
https://codereview.chromium.org/1005393003/diff/1/chrome/browser/download/notification/download_notification_item_unittest.cc File chrome/browser/download/notification/download_notification_item_unittest.cc (right): https://codereview.chromium.org/1005393003/diff/1/chrome/browser/download/notification/download_notification_item_unittest.cc#newcode129 chrome/browser/download/notification/download_notification_item_unittest.cc:129: Profile* profile = profile_manager.CreateTestingProfile("test-user"); On 2015/03/25 05:30:25, yoshiki wrote: ...
5 years, 9 months ago (2015-03-25 21:04:48 UTC) #6
yoshiki
On 2015/03/25 21:04:48, asanka (OOO until April 20) wrote: > https://codereview.chromium.org/1005393003/diff/1/chrome/browser/download/notification/download_notification_item_unittest.cc > File chrome/browser/download/notification/download_notification_item_unittest.cc > ...
5 years, 8 months ago (2015-03-31 19:48:10 UTC) #7
yoshiki
benjhayden: PTAL at the change under C/B/downloads, on behalf of asanka? mukai: PTAL at the ...
5 years, 8 months ago (2015-03-31 19:53:55 UTC) #9
yoshiki
Sorry, I forgot to update the subject and description of this patch along with the ...
5 years, 8 months ago (2015-03-31 19:58:33 UTC) #10
Jun Mukai
https://codereview.chromium.org/1005393003/diff/40001/chrome/browser/notifications/message_center_notification_manager.cc File chrome/browser/notifications/message_center_notification_manager.cc (right): https://codereview.chromium.org/1005393003/diff/40001/chrome/browser/notifications/message_center_notification_manager.cc#newcode205 chrome/browser/notifications/message_center_notification_manager.cc:205: // Update |notification| with the latest information from the ...
5 years, 8 months ago (2015-03-31 19:59:47 UTC) #11
yoshiki
https://codereview.chromium.org/1005393003/diff/40001/chrome/browser/notifications/message_center_notification_manager.cc File chrome/browser/notifications/message_center_notification_manager.cc (right): https://codereview.chromium.org/1005393003/diff/40001/chrome/browser/notifications/message_center_notification_manager.cc#newcode205 chrome/browser/notifications/message_center_notification_manager.cc:205: // Update |notification| with the latest information from the ...
5 years, 8 months ago (2015-04-01 04:10:49 UTC) #12
Jun Mukai
https://codereview.chromium.org/1005393003/diff/40001/chrome/browser/download/notification/download_notification_item.cc File chrome/browser/download/notification/download_notification_item.cc (right): https://codereview.chromium.org/1005393003/diff/40001/chrome/browser/download/notification/download_notification_item.cc#newcode125 chrome/browser/download/notification/download_notification_item.cc:125: reshow_after_remove = !current_notification->shown_as_popup(); You don't have to check through ...
5 years, 8 months ago (2015-04-01 18:02:11 UTC) #13
yoshiki
Mukai-san, thank you for comments and sorry for late. I was busy with the M43 ...
5 years, 8 months ago (2015-04-06 02:22:18 UTC) #14
Jun Mukai
https://codereview.chromium.org/1005393003/diff/40001/chrome/browser/download/notification/download_notification_item.cc File chrome/browser/download/notification/download_notification_item.cc (right): https://codereview.chromium.org/1005393003/diff/40001/chrome/browser/download/notification/download_notification_item.cc#newcode125 chrome/browser/download/notification/download_notification_item.cc:125: reshow_after_remove = !current_notification->shown_as_popup(); On 2015/04/06 02:22:18, yoshiki wrote: > ...
5 years, 8 months ago (2015-04-06 08:20:06 UTC) #15
yoshiki
On 2015/04/06 08:20:06, Jun Mukai wrote: > https://codereview.chromium.org/1005393003/diff/40001/chrome/browser/download/notification/download_notification_item.cc > File chrome/browser/download/notification/download_notification_item.cc (right): > > https://codereview.chromium.org/1005393003/diff/40001/chrome/browser/download/notification/download_notification_item.cc#newcode125 ...
5 years, 8 months ago (2015-04-06 08:59:24 UTC) #16
Jun Mukai
On 2015/04/06 08:59:24, yoshiki wrote: > On 2015/04/06 08:20:06, Jun Mukai wrote: > > > ...
5 years, 8 months ago (2015-04-06 09:27:44 UTC) #18
Jun Mukai
By the way, if you want to check and update the notification status from delegate, ...
5 years, 8 months ago (2015-04-06 09:30:41 UTC) #19
yoshiki
Thank you for kind explanation. I agreed with you and your recommendation seems better to ...
5 years, 8 months ago (2015-04-06 11:44:41 UTC) #20
yoshiki
@mukai, I updated the patch set along with the new way we discussed in the ...
5 years, 8 months ago (2015-04-07 23:58:03 UTC) #22
Jun Mukai
https://codereview.chromium.org/1005393003/diff/100001/chrome/browser/notifications/message_center_notification_manager.cc File chrome/browser/notifications/message_center_notification_manager.cc (right): https://codereview.chromium.org/1005393003/diff/100001/chrome/browser/notifications/message_center_notification_manager.cc#newcode209 chrome/browser/notifications/message_center_notification_manager.cc:209: iter->second->notification().id())); I believe this is not necessary anymore. https://codereview.chromium.org/1005393003/diff/100001/chrome/browser/notifications/profile_notification.h ...
5 years, 8 months ago (2015-04-08 00:13:19 UTC) #23
yoshiki
@mukai, Thanks. PTAL https://codereview.chromium.org/1005393003/diff/100001/chrome/browser/notifications/message_center_notification_manager.cc File chrome/browser/notifications/message_center_notification_manager.cc (right): https://codereview.chromium.org/1005393003/diff/100001/chrome/browser/notifications/message_center_notification_manager.cc#newcode209 chrome/browser/notifications/message_center_notification_manager.cc:209: iter->second->notification().id())); On 2015/04/08 00:13:19, Jun Mukai ...
5 years, 8 months ago (2015-04-08 00:54:05 UTC) #25
Jun Mukai
c/b/notifications lgtm
5 years, 8 months ago (2015-04-08 00:54:44 UTC) #26
yoshiki
@benjhayden, could you take a look? Thanks.
5 years, 8 months ago (2015-04-08 01:13:16 UTC) #27
yoshiki
phajdan.jr@, rdsmith@, could you take a look at the changes in C/B/downloads, since asanka@ is ...
5 years, 8 months ago (2015-04-10 15:32:14 UTC) #29
Randy Smith (Not in Mondays)
Quick high level question: Are you asking for a review for all files in this ...
5 years, 8 months ago (2015-04-10 21:43:19 UTC) #30
yoshiki
@rdsmith, thank you for reviewing this. I'd like to ask you reviewing the whole change ...
5 years, 8 months ago (2015-04-13 15:51:53 UTC) #31
Randy Smith (Not in Mondays)
Two more high level questions, and then I hope I'll be ready to finish the ...
5 years, 8 months ago (2015-04-14 00:02:00 UTC) #32
yoshiki
On 2015/04/14 00:02:00, rdsmith wrote: > Two more high level questions, and then I hope ...
5 years, 8 months ago (2015-04-14 07:20:22 UTC) #33
yoshiki
@rdsmith, PTAL again? https://codereview.chromium.org/1005393003/diff/180001/chrome/browser/download/notification/download_notification_item.h File chrome/browser/download/notification/download_notification_item.h (right): https://codereview.chromium.org/1005393003/diff/180001/chrome/browser/download/notification/download_notification_item.h#newcode25 chrome/browser/download/notification/download_notification_item.h:25: : public base::SupportsWeakPtr<DownloadNotificationItem>, On 2015/04/14 00:02:00, ...
5 years, 8 months ago (2015-04-15 02:59:51 UTC) #34
Randy Smith (Not in Mondays)
> It was discussed in the mail with notification guys. Along with the behavior change ...
5 years, 8 months ago (2015-04-15 19:16:31 UTC) #35
yoshiki
On 2015/04/15 19:16:31, rdsmith wrote: > > It was discussed in the mail with notification ...
5 years, 8 months ago (2015-04-16 06:48:54 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1005393003/200001
5 years, 8 months ago (2015-04-16 06:50:53 UTC) #39
commit-bot: I haz the power
Committed patchset #9 (id:200001)
5 years, 8 months ago (2015-04-16 08:56:41 UTC) #40
commit-bot: I haz the power
5 years, 8 months ago (2015-04-16 08:57:32 UTC) #41
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/365ac4c9486e5f9963b06de940809189011d84d3
Cr-Commit-Position: refs/heads/master@{#325404}

Powered by Google App Engine
This is Rietveld 408576698