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

Issue 1477733002: Add ArcNotificationManager for new ARC notification (Closed)

Created:
5 years ago by yoshiki
Modified:
4 years, 11 months ago
CC:
davemoore+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ArcNotificationManager for new ARC notification This change comes along with: - http://crrev.com/1475583002 (ArcBridge part) - http://crrev.com/1477733002 (UI part, this patch) - http://ag/824594 - http://ag/824724 - http://ag/818913 These patch adds minimal support of new ARC notification: - Showing notifications - Closing ARC notifications from either side This chromium-side change should do nothing until the android side change is landed. BUG=560682 Committed: https://crrev.com/5d4f913c38b5a225caf110f3c280cb426f424f24 Cr-Commit-Position: refs/heads/master@{#368924}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Add OWNERS file #

Patch Set 4 : Fix comment #

Total comments: 24

Patch Set 5 : Rebase to mojo and addressed comments #

Patch Set 6 : Add a TODO comment about ArcServiceManager #

Total comments: 24

Patch Set 7 : Addressed comments #

Patch Set 8 : Moved the notification stuffs to components/arc. #

Patch Set 9 : . #

Total comments: 38

Patch Set 10 : Addressed comments #

Total comments: 4

Patch Set 11 : Addressed comments #

Patch Set 12 : Rebased and formatted #

Total comments: 26

Patch Set 13 : Addressed comments #

Patch Set 14 : Rebase #

Total comments: 10

Patch Set 15 : rebase #

Patch Set 16 : Moved to ui/arc and Addressed comments #

Total comments: 19

Patch Set 17 : Addressed comments #

Total comments: 8

Patch Set 18 : Addressed comments #

Total comments: 10

Patch Set 19 : Addressed comments (#85) #

Patch Set 20 : Rebased #

Total comments: 4

Patch Set 21 : Addressed comments (#88) #

Patch Set 22 : Rebased #

Patch Set 23 : Sync dependencies #

Unified diffs Side-by-side diffs Delta from patch set Stats (+511 lines, -0 lines) Patch
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +10 lines, -0 lines 0 comments Download
M components/arc.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M components/arc/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M components/arc/arc_service_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +6 lines, -0 lines 0 comments Download
M components/arc/arc_service_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +9 lines, -0 lines 0 comments Download
A ui/arc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +23 lines, -0 lines 0 comments Download
A ui/arc/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
A + ui/arc/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 chunks +-1 lines, --1 lines 0 comments Download
A ui/arc/arc.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +32 lines, -0 lines 0 comments Download
A + ui/arc/notification/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -1 line 0 comments Download
A ui/arc/notification/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
A ui/arc/notification/arc_notification_item.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +73 lines, -0 lines 0 comments Download
A ui/arc/notification/arc_notification_item.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +198 lines, -0 lines 0 comments Download
A ui/arc/notification/arc_notification_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +54 lines, -0 lines 0 comments Download
A ui/arc/notification/arc_notification_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +94 lines, -0 lines 0 comments Download

Messages

Total messages: 110 (50 generated)
yoshiki
Elijah, Hidehiko-san, PTAL. Thanks.
5 years ago (2015-12-07 18:11:24 UTC) #9
elijahtaylor1
https://codereview.chromium.org/1477733002/diff/100001/chrome/browser/chromeos/arc/notification/arc_notification_item.cc File chrome/browser/chromeos/arc/notification/arc_notification_item.cc (right): https://codereview.chromium.org/1477733002/diff/100001/chrome/browser/chromeos/arc/notification/arc_notification_item.cc#newcode25 chrome/browser/chromeos/arc/notification/arc_notification_item.cc:25: const char kArcNotificationOrigin[] = "chrome://arc"; what is the implication ...
5 years ago (2015-12-09 06:41:26 UTC) #10
yoshiki
https://codereview.chromium.org/1477733002/diff/100001/chrome/browser/chromeos/arc/notification/arc_notification_item.cc File chrome/browser/chromeos/arc/notification/arc_notification_item.cc (right): https://codereview.chromium.org/1477733002/diff/100001/chrome/browser/chromeos/arc/notification/arc_notification_item.cc#newcode25 chrome/browser/chromeos/arc/notification/arc_notification_item.cc:25: const char kArcNotificationOrigin[] = "chrome://arc"; On 2015/12/09 06:41:25, elijahtaylor1 ...
5 years ago (2015-12-09 17:11:09 UTC) #12
yoshiki
> > We've been consolidating ARC related services in > > components/arc/arc_service_manager (see > > ...
5 years ago (2015-12-10 14:47:39 UTC) #13
yoshiki
Elijah, Hidehiko-san, PTAL. Thanks.
5 years ago (2015-12-10 14:48:39 UTC) #14
hidehiko
I do not have a strong preference if the code should put into components/arc in ...
5 years ago (2015-12-11 05:18:01 UTC) #15
yoshiki
https://codereview.chromium.org/1477733002/diff/160001/chrome/browser/chromeos/arc/notification/arc_notification_item.cc File chrome/browser/chromeos/arc/notification/arc_notification_item.cc (right): https://codereview.chromium.org/1477733002/diff/160001/chrome/browser/chromeos/arc/notification/arc_notification_item.cc#newcode37 chrome/browser/chromeos/arc/notification/arc_notification_item.cc:37: // TODO(yoshiki): Return the corerct value according to the ...
5 years ago (2015-12-14 15:19:30 UTC) #19
yoshiki
Hidehiko-san, Elijah, PTAL. Thanks On 2015/12/11 05:18:01, hidehiko wrote: > I do not have a ...
5 years ago (2015-12-14 15:21:45 UTC) #20
yoshiki
Hi, I've just moved the notification stuffs to components/arc. PTAL again? Thanks.
5 years ago (2015-12-15 15:53:59 UTC) #23
elijahtaylor1
lgtm, but please check with hidehiko in case he wanted to take another look. I ...
5 years ago (2015-12-16 02:34:37 UTC) #24
elijahtaylor1
lgtm, but please check with hidehiko in case he wanted to take another look. I ...
5 years ago (2015-12-16 02:34:48 UTC) #25
hidehiko
https://codereview.chromium.org/1477733002/diff/320001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/1477733002/diff/320001/components/arc/arc_service_manager.h#newcode34 components/arc/arc_service_manager.h:34: void PostProfileInit(const AccountId& account_id); Could you add comments, specifically ...
5 years ago (2015-12-17 07:47:51 UTC) #26
Luis Héctor Chávez
https://codereview.chromium.org/1477733002/diff/320001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/1477733002/diff/320001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode646 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:646: // ArcServiceManager, when it can manage a service under ...
5 years ago (2015-12-17 17:43:09 UTC) #28
yoshiki
PTAL. Thanks. https://codereview.chromium.org/1477733002/diff/320001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/1477733002/diff/320001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode646 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:646: // ArcServiceManager, when it can manage a ...
5 years ago (2015-12-17 19:15:14 UTC) #35
Luis Héctor Chávez
lgtm
5 years ago (2015-12-17 22:18:57 UTC) #36
Luis Héctor Chávez
Wait, does this pass trybots? It looks like this will most likely break the GN ...
5 years ago (2015-12-17 22:41:56 UTC) #37
Luis Héctor Chávez
https://codereview.chromium.org/1477733002/diff/460001/components/arc/notification/arc_notification_manager.cc File components/arc/notification/arc_notification_manager.cc (right): https://codereview.chromium.org/1477733002/diff/460001/components/arc/notification/arc_notification_manager.cc#newcode61 components/arc/notification/arc_notification_manager.cc:61: ArcBridgeService::Get()->SendNotificationEventToAndroid( You already have |arc_bridge_|, any reason why you ...
5 years ago (2015-12-17 22:49:50 UTC) #38
Luis Héctor Chávez
More nits from the linter. By the way, can you run `git cl lint` and ...
5 years ago (2015-12-17 23:11:42 UTC) #39
yoshiki
Modified BUILD.gn as well and did "git cl lint" and "git cl format. https://codereview.chromium.org/1477733002/diff/460001/components/arc/notification/arc_notification_manager.cc File ...
5 years ago (2015-12-21 19:23:00 UTC) #42
yoshiki
xiyuan, PTAL at the changes in chrome_browser_main_chromeos.cc? Thanks.
5 years ago (2015-12-21 19:23:51 UTC) #44
xiyuan
https://codereview.chromium.org/1477733002/diff/560001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/1477733002/diff/560001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode649 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:649: multi_user_util::GetAccountIdFromProfile(profile())); IIRC, this code path is usually executed on ...
5 years ago (2015-12-21 22:56:36 UTC) #46
hidehiko
lgtm with nitpicks. Please re-run trybots after your update, again. https://codereview.chromium.org/1477733002/diff/560001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/1477733002/diff/560001/components/arc/arc_service_manager.h#newcode35 ...
5 years ago (2015-12-22 08:51:28 UTC) #47
yoshiki
Xiyuan PTAL. Thanks. https://codereview.chromium.org/1477733002/diff/560001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/1477733002/diff/560001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode649 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:649: multi_user_util::GetAccountIdFromProfile(profile())); On 2015/12/21 22:56:36, xiyuan wrote: ...
5 years ago (2015-12-22 10:13:54 UTC) #49
xiyuan
user_session_manager.cc LGTM https://codereview.chromium.org/1477733002/diff/560001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/1477733002/diff/560001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode649 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:649: multi_user_util::GetAccountIdFromProfile(profile())); On 2015/12/22 10:13:53, yoshiki wrote: > ...
5 years ago (2015-12-22 16:10:18 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477733002/600001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477733002/600001
5 years ago (2015-12-24 10:11:50 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/137332) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years ago (2015-12-24 10:13:49 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477733002/640001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477733002/640001
4 years, 12 months ago (2015-12-29 05:37:01 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/131839)
4 years, 12 months ago (2015-12-29 05:44:19 UTC) #61
yoshiki
Hi, could you approve the changes? Thanks. dcheng@: changes in components/arc/common/notifications.mojom jam@: dependency on content/public ...
4 years, 12 months ago (2015-12-29 05:55:50 UTC) #63
stevenjb
https://codereview.chromium.org/1477733002/diff/640001/components/arc/DEPS File components/arc/DEPS (right): https://codereview.chromium.org/1477733002/diff/640001/components/arc/DEPS#newcode12 components/arc/DEPS:12: "+ui/message_center", I would suggest that at this point, components/arc ...
4 years, 11 months ago (2015-12-29 17:21:15 UTC) #64
jam
On 2015/12/29 05:55:50, yoshiki wrote: > Hi, could you approve the changes? Thanks. > > ...
4 years, 11 months ago (2015-12-29 20:14:34 UTC) #65
dcheng
https://codereview.chromium.org/1477733002/diff/640001/components/arc/notification/arc_notification_item.cc File components/arc/notification/arc_notification_item.cc (right): https://codereview.chromium.org/1477733002/diff/640001/components/arc/notification/arc_notification_item.cc#newcode25 components/arc/notification/arc_notification_item.cc:25: static const char* kNotifierId = "ARC_NOTIFICATION"; Nit: const char ...
4 years, 11 months ago (2015-12-30 19:19:35 UTC) #66
danakj
DEPS lgtm
4 years, 11 months ago (2016-01-04 21:09:24 UTC) #67
yoshiki
On 2015/12/29 20:14:34, jam wrote: > On 2015/12/29 05:55:50, yoshiki wrote: > > Hi, could ...
4 years, 11 months ago (2016-01-05 10:09:07 UTC) #68
yoshiki
hidehiko@, elijah@, I moved the arc notification stuffs to ui/arc as stevenjb@ suggested. Is it ...
4 years, 11 months ago (2016-01-05 10:12:14 UTC) #69
hidehiko
Could you run trybots? I'm fine to move the code to ui/arc. Defer to elijahtaylor@. ...
4 years, 11 months ago (2016-01-05 11:41:33 UTC) #70
jabdelmalek
On 2016/01/05 10:09:07, yoshiki wrote: > On 2015/12/29 20:14:34, jam wrote: > > On 2015/12/29 ...
4 years, 11 months ago (2016-01-05 16:01:12 UTC) #71
stevenjb
DEPS lgtm, thanks. https://codereview.chromium.org/1477733002/diff/680001/ui/arc/notification/arc_notification_item.cc File ui/arc/notification/arc_notification_item.cc (right): https://codereview.chromium.org/1477733002/diff/680001/ui/arc/notification/arc_notification_item.cc#newcode35 ui/arc/notification/arc_notification_item.cc:35: static const gfx::Size kNotificationIconSize( extra space ...
4 years, 11 months ago (2016-01-05 16:59:06 UTC) #72
danakj
https://codereview.chromium.org/1477733002/diff/680001/ui/arc/notification/DEPS File ui/arc/notification/DEPS (right): https://codereview.chromium.org/1477733002/diff/680001/ui/arc/notification/DEPS#newcode6 ui/arc/notification/DEPS:6: "+ui/gfx", This LGTM
4 years, 11 months ago (2016-01-05 19:35:34 UTC) #73
yoshiki
elijahtaylor@: Is it ok for you to move the notification stuff to ui/arc? Hidehiko deferred ...
4 years, 11 months ago (2016-01-06 08:50:17 UTC) #76
reed1
deps on skia: lgtm
4 years, 11 months ago (2016-01-06 14:52:19 UTC) #78
elijahtaylor1
lgtm, I have no issue moving this code to ui/arc if it's been requested https://codereview.chromium.org/1477733002/diff/720001/components/arc/arc_service_manager.h ...
4 years, 11 months ago (2016-01-06 17:45:28 UTC) #79
Roger Tawa OOO till Jul 10th
lgtm deps in account_id
4 years, 11 months ago (2016-01-06 20:50:53 UTC) #80
sky
I'm having a hard time seeing how all this fits together. Do you have a ...
4 years, 11 months ago (2016-01-06 22:02:36 UTC) #81
yoshiki
On 2016/01/06 22:02:36, sky wrote: > I'm having a hard time seeing how all this ...
4 years, 11 months ago (2016-01-07 02:15:36 UTC) #82
dcheng
https://codereview.chromium.org/1477733002/diff/640001/components/arc/notification/arc_notification_item.cc File components/arc/notification/arc_notification_item.cc (right): https://codereview.chromium.org/1477733002/diff/640001/components/arc/notification/arc_notification_item.cc#newcode35 components/arc/notification/arc_notification_item.cc:35: // in ARC and should be safe. On 2016/01/05 ...
4 years, 11 months ago (2016-01-07 19:24:21 UTC) #83
yoshiki
@sky, I added the permission to the doc, and removed the dependency on webkit. PTAL ...
4 years, 11 months ago (2016-01-08 10:32:58 UTC) #84
sky
https://codereview.chromium.org/1477733002/diff/740001/ui/arc/notification/arc_notification_item.cc File ui/arc/notification/arc_notification_item.cc (right): https://codereview.chromium.org/1477733002/diff/740001/ui/arc/notification/arc_notification_item.cc#newcode154 ui/arc/notification/arc_notification_item.cc:154: data.icon_data.storage().end()); // copy AFAICT you aren't using icon_data_str. https://codereview.chromium.org/1477733002/diff/740001/ui/arc/notification/arc_notification_item.cc#newcode158 ...
4 years, 11 months ago (2016-01-08 17:17:30 UTC) #85
yoshiki
sky@: PTAL, Thanks. https://codereview.chromium.org/1477733002/diff/740001/ui/arc/notification/arc_notification_item.cc File ui/arc/notification/arc_notification_item.cc (right): https://codereview.chromium.org/1477733002/diff/740001/ui/arc/notification/arc_notification_item.cc#newcode154 ui/arc/notification/arc_notification_item.cc:154: data.icon_data.storage().end()); // copy On 2016/01/08 17:17:30, ...
4 years, 11 months ago (2016-01-11 21:25:28 UTC) #86
sky
LGTM
4 years, 11 months ago (2016-01-12 00:57:10 UTC) #87
dcheng
lgtm https://codereview.chromium.org/1477733002/diff/780001/ui/arc/notification/arc_notification_item.cc File ui/arc/notification/arc_notification_item.cc (right): https://codereview.chromium.org/1477733002/diff/780001/ui/arc/notification/arc_notification_item.cc#newcode27 ui/arc/notification/arc_notification_item.cc:27: // static Nit: // static is redundant here ...
4 years, 11 months ago (2016-01-12 01:25:48 UTC) #88
yoshiki
Thank you all! https://codereview.chromium.org/1477733002/diff/780001/ui/arc/notification/arc_notification_item.cc File ui/arc/notification/arc_notification_item.cc (right): https://codereview.chromium.org/1477733002/diff/780001/ui/arc/notification/arc_notification_item.cc#newcode27 ui/arc/notification/arc_notification_item.cc:27: // static On 2016/01/12 01:25:48, dcheng ...
4 years, 11 months ago (2016-01-12 04:50:25 UTC) #89
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477733002/800001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477733002/800001
4 years, 11 months ago (2016-01-12 04:51:16 UTC) #92
commit-bot: I haz the power
Failed to apply patch for components/arc/arc_service_manager.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 11 months ago (2016-01-12 04:58:57 UTC) #94
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477733002/800001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477733002/800001
4 years, 11 months ago (2016-01-12 06:50:23 UTC) #97
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477733002/820001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477733002/820001
4 years, 11 months ago (2016-01-12 08:09:56 UTC) #101
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/141692)
4 years, 11 months ago (2016-01-12 08:41:56 UTC) #103
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477733002/840001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477733002/840001
4 years, 11 months ago (2016-01-12 18:04:42 UTC) #106
commit-bot: I haz the power
Committed patchset #23 (id:840001)
4 years, 11 months ago (2016-01-12 18:44:13 UTC) #108
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 18:45:45 UTC) #110
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/5d4f913c38b5a225caf110f3c280cb426f424f24
Cr-Commit-Position: refs/heads/master@{#368924}

Powered by Google App Engine
This is Rietveld 408576698