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

Issue 1978313002: Support cancelling toast (Closed)

Created:
4 years, 7 months ago by yoshiki
Modified:
4 years, 7 months ago
Reviewers:
hidehiko, oshima, dcheng
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chomium.org, kalyank, lhchavez+watch_chromium.org, qsr+mojo_chromium.org, sadrul, viettrungluu+watch_chromium.org, yusukes+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support cancelling toast This patch does: - Add and implement ToastManager::Cancel(string) to cancel a toast - Add ToastData to pass a toast data with one variable - Make ArcToastData::text nullable since it is null in cancel request BUG=b/25797993 TEST=manually tested Committed: https://crrev.com/ac85029da05a81a1e46dbf43003f6750d710d111 Cr-Commit-Position: refs/heads/master@{#395627}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 13

Patch Set 3 : . #

Total comments: 7

Patch Set 4 : Addressed comment #

Patch Set 5 : Use std::vector back instead of std::list #

Total comments: 20

Patch Set 6 : Addressed comments #

Total comments: 2

Patch Set 7 : Addressed comments #

Patch Set 8 : Use std::deque instead of vector #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -47 lines) Patch
A ash/system/toast/toast_data.h View 1 1 chunk +27 lines, -0 lines 0 comments Download
M ash/system/toast/toast_manager.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -7 lines 0 comments Download
M ash/system/toast/toast_manager.cc View 1 2 3 4 5 6 1 chunk +43 lines, -12 lines 0 comments Download
M ash/system/toast/toast_manager_unittest.cc View 1 2 3 4 5 11 chunks +58 lines, -25 lines 0 comments Download
M components/arc/common/notifications.mojom View 1 chunk +1 line, -1 line 0 comments Download
M ui/arc/notification/arc_notification_manager.cc View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (13 generated)
yoshiki
Oshima-san, PTAL at ash changes. Daniel, PTAL at mojo changes. Thanks.
4 years, 7 months ago (2016-05-16 19:19:43 UTC) #5
oshima
https://codereview.chromium.org/1978313002/diff/40001/ash/system/toast/toast_manager.cc File ash/system/toast/toast_manager.cc (right): https://codereview.chromium.org/1978313002/diff/40001/ash/system/toast/toast_manager.cc#newcode73 ash/system/toast/toast_manager.cc:73: serial_++; Can you just use id instead? Do we ...
4 years, 7 months ago (2016-05-16 22:37:25 UTC) #6
dcheng
https://codereview.chromium.org/1978313002/diff/40001/ash/system/toast/toast_manager.cc File ash/system/toast/toast_manager.cc (right): https://codereview.chromium.org/1978313002/diff/40001/ash/system/toast/toast_manager.cc#newcode29 ash/system/toast/toast_manager.cc:29: std::find_if(std::begin(queue_), std::end(queue_), queue_.begin(), queue_.end() is a little more standard ...
4 years, 7 months ago (2016-05-17 02:57:25 UTC) #7
yoshiki
Oshima, Daniel, PTAL. Thanks. https://codereview.chromium.org/1978313002/diff/40001/ash/system/toast/toast_manager.cc File ash/system/toast/toast_manager.cc (right): https://codereview.chromium.org/1978313002/diff/40001/ash/system/toast/toast_manager.cc#newcode29 ash/system/toast/toast_manager.cc:29: std::find_if(std::begin(queue_), std::end(queue_), On 2016/05/17 02:57:25, ...
4 years, 7 months ago (2016-05-17 06:25:21 UTC) #11
oshima
lgtm with nits https://codereview.chromium.org/1978313002/diff/40001/ash/system/toast/toast_manager.cc File ash/system/toast/toast_manager.cc (right): https://codereview.chromium.org/1978313002/diff/40001/ash/system/toast/toast_manager.cc#newcode73 ash/system/toast/toast_manager.cc:73: serial_++; On 2016/05/17 06:25:21, yoshiki wrote: ...
4 years, 7 months ago (2016-05-18 16:59:44 UTC) #12
dcheng
mojom lgtm
4 years, 7 months ago (2016-05-18 17:41:23 UTC) #13
yoshiki
Hidehiko-san, PTAL at arc_notification_manager.cc? https://codereview.chromium.org/1978313002/diff/120001/ash/system/toast/toast_manager.cc File ash/system/toast/toast_manager.cc (right): https://codereview.chromium.org/1978313002/diff/120001/ash/system/toast/toast_manager.cc#newcode28 ash/system/toast/toast_manager.cc:28: Queue::iterator existing_toast = On 2016/05/18 ...
4 years, 7 months ago (2016-05-19 09:14:12 UTC) #15
hidehiko
I'll take a look, but please fix compile errors in advance. On 2016/05/19 09:14:12, yoshiki ...
4 years, 7 months ago (2016-05-20 06:43:34 UTC) #16
yoshiki
Hidehiko-san, sorry, last minute change broke the build. I fixed. https://codereview.chromium.org/1978313002/diff/120001/ash/system/toast/toast_manager.h File ash/system/toast/toast_manager.h (right): https://codereview.chromium.org/1978313002/diff/120001/ash/system/toast/toast_manager.h#newcode38 ...
4 years, 7 months ago (2016-05-20 06:57:30 UTC) #17
hidehiko
https://codereview.chromium.org/1978313002/diff/160001/ash/system/toast/toast_manager.cc File ash/system/toast/toast_manager.cc (right): https://codereview.chromium.org/1978313002/diff/160001/ash/system/toast/toast_manager.cc#newcode55 ash/system/toast/toast_manager.cc:55: [id](const ToastData& data) { return data.id == id; }); ...
4 years, 7 months ago (2016-05-20 07:46:53 UTC) #18
yoshiki
Hidehiko-san, PTAL https://codereview.chromium.org/1978313002/diff/160001/ash/system/toast/toast_manager.cc File ash/system/toast/toast_manager.cc (right): https://codereview.chromium.org/1978313002/diff/160001/ash/system/toast/toast_manager.cc#newcode55 ash/system/toast/toast_manager.cc:55: [id](const ToastData& data) { return data.id == ...
4 years, 7 months ago (2016-05-20 08:14:55 UTC) #19
dcheng
(Drive-by) https://codereview.chromium.org/1978313002/diff/180001/ash/system/toast/toast_manager.cc File ash/system/toast/toast_manager.cc (right): https://codereview.chromium.org/1978313002/diff/180001/ash/system/toast/toast_manager.cc#newcode55 ash/system/toast/toast_manager.cc:55: [id](const ToastData& data) { return data.id == id; ...
4 years, 7 months ago (2016-05-20 08:16:34 UTC) #20
hidehiko
https://codereview.chromium.org/1978313002/diff/160001/ash/system/toast/toast_manager.cc File ash/system/toast/toast_manager.cc (right): https://codereview.chromium.org/1978313002/diff/160001/ash/system/toast/toast_manager.cc#newcode55 ash/system/toast/toast_manager.cc:55: [id](const ToastData& data) { return data.id == id; }); ...
4 years, 7 months ago (2016-05-20 08:52:42 UTC) #21
yoshiki
Hidehiko-san, PTAL https://codereview.chromium.org/1978313002/diff/160001/ash/system/toast/toast_manager.cc File ash/system/toast/toast_manager.cc (right): https://codereview.chromium.org/1978313002/diff/160001/ash/system/toast/toast_manager.cc#newcode55 ash/system/toast/toast_manager.cc:55: [id](const ToastData& data) { return data.id == ...
4 years, 7 months ago (2016-05-20 09:30:31 UTC) #23
hidehiko
lgtm, but please see my comment below, too. https://codereview.chromium.org/1978313002/diff/160001/ash/system/toast/toast_manager.h File ash/system/toast/toast_manager.h (right): https://codereview.chromium.org/1978313002/diff/160001/ash/system/toast/toast_manager.h#newcode50 ash/system/toast/toast_manager.h:50: std::list<ToastData> ...
4 years, 7 months ago (2016-05-20 14:08:33 UTC) #24
oshima
On 2016/05/20 14:08:33, hidehiko wrote: > lgtm, but please see my comment below, too. > ...
4 years, 7 months ago (2016-05-20 16:56:12 UTC) #25
yoshiki
On 2016/05/20 16:56:12, oshima wrote: > On 2016/05/20 14:08:33, hidehiko wrote: > > lgtm, but ...
4 years, 7 months ago (2016-05-24 16:39:07 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1978313002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1978313002/240001
4 years, 7 months ago (2016-05-24 16:39:50 UTC) #29
commit-bot: I haz the power
Committed patchset #8 (id:240001)
4 years, 7 months ago (2016-05-24 17:27:03 UTC) #31
commit-bot: I haz the power
4 years, 7 months ago (2016-05-24 17:30:08 UTC) #33
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ac85029da05a81a1e46dbf43003f6750d710d111
Cr-Commit-Position: refs/heads/master@{#395627}

Powered by Google App Engine
This is Rietveld 408576698