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

Issue 2690543003: Send notification to users upon receiving sms messages (Closed)

Created:
3 years, 10 months ago by yiyix
Modified:
3 years, 10 months ago
CC:
chromium-reviews, kalyank, stevenjb+watch_chromium.org, sadrul, oshima+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Send notification to users upon receiving sms messages After receiving a sms message, instead of creating a notification view bubble, a notification in notification center containing the sms message is sent to user. Remove notification view implementation because it is only used to display sms messages. This CL is a split from https://codereview.chromium.org/2583393002/. Please Refer to it for some discussion details. BUG=630641 TEST=system_tray_unittest Review-Url: https://codereview.chromium.org/2690543003 Cr-Commit-Position: refs/heads/master@{#450875} Committed: https://chromium.googlesource.com/chromium/src/+/90cfee2509916bf517552bd6f69acb9d5086aeaf

Patch Set 1 #

Total comments: 47

Patch Set 2 : address comments #

Total comments: 18

Patch Set 3 : address comments #

Total comments: 1

Patch Set 4 : fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -515 lines) Patch
M ash/BUILD.gn View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M ash/ash_chromeos_strings.grdp View 1 chunk +0 lines, -9 lines 0 comments Download
A ash/common/system/chromeos/network/sms_observer.h View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A ash/common/system/chromeos/network/sms_observer.cc View 1 2 3 1 chunk +93 lines, -0 lines 0 comments Download
A ash/common/system/chromeos/network/sms_observer_unittest.cc View 1 2 1 chunk +136 lines, -0 lines 0 comments Download
D ash/common/system/chromeos/network/tray_sms.h View 1 chunk +0 lines, -67 lines 0 comments Download
D ash/common/system/chromeos/network/tray_sms.cc View 1 chunk +0 lines, -428 lines 0 comments Download
M ash/common/system/system_notifier.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/system/system_notifier.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M ash/common/system/tray/system_tray.cc View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M ash/common/system/tray/tray_notification_view.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ash/resources/ash_resources.grd View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
D ash/resources/default_100_percent/cros/status/status_sms.png View Binary file 0 comments Download
D ash/resources/default_100_percent/cros/status/status_sms_dismiss.png View Binary file 0 comments Download
D ash/resources/default_200_percent/cros/status/status_sms.png View Binary file 0 comments Download
D ash/resources/default_200_percent/cros/status/status_sms_dismiss.png View Binary file 0 comments Download
M ash/shell.h View 1 2 4 chunks +6 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (12 generated)
yiyix
This patch contains the logic to send sms messages to notification center only. Removing notification ...
3 years, 10 months ago (2017-02-10 15:59:18 UTC) #8
yiyix
On 2017/02/10 15:59:18, yiyix wrote: > This patch contains the logic to send sms messages ...
3 years, 10 months ago (2017-02-10 16:00:42 UTC) #10
stevenjb
Thanks for simplifying this CL! LGTM w/ one request. https://codereview.chromium.org/2690543003/diff/1/ash/common/system/chromeos/network/sms_observer.cc File ash/common/system/chromeos/network/sms_observer.cc (right): https://codereview.chromium.org/2690543003/diff/1/ash/common/system/chromeos/network/sms_observer.cc#newcode71 ash/common/system/chromeos/network/sms_observer.cc:71: ...
3 years, 10 months ago (2017-02-10 17:15:23 UTC) #11
James Cook
My biggest question is where SmsObserver should live. ShelfWidget is mostly a view class (in ...
3 years, 10 months ago (2017-02-10 17:36:38 UTC) #12
stevenjb
https://codereview.chromium.org/2690543003/diff/1/ash/common/shelf/shelf_widget.h File ash/common/shelf/shelf_widget.h (right): https://codereview.chromium.org/2690543003/diff/1/ash/common/shelf/shelf_widget.h#newcode128 ash/common/shelf/shelf_widget.h:128: std::unique_ptr<SmsObserver> sms_observer_; On 2017/02/10 17:36:37, James Cook wrote: > ...
3 years, 10 months ago (2017-02-10 17:48:26 UTC) #13
James Cook
Are you sure it should go in chrome/browser? That will complicate mustash. Maybe just hang ...
3 years, 10 months ago (2017-02-10 17:51:44 UTC) #14
stevenjb
As I mentioned, much of the code in chrome/browser/chromeos/net/ is going to also need to ...
3 years, 10 months ago (2017-02-10 18:26:08 UTC) #15
James Cook
If it doesn't have chrome/browser dependencies I would leave the file itself where it is ...
3 years, 10 months ago (2017-02-10 18:28:34 UTC) #16
stevenjb
On 2017/02/10 18:28:34, James Cook wrote: > If it doesn't have chrome/browser dependencies I would ...
3 years, 10 months ago (2017-02-10 18:41:10 UTC) #17
yiyix
The sms_observer is now initialized in ash/shell. I think it is a better home for ...
3 years, 10 months ago (2017-02-13 23:34:01 UTC) #18
stevenjb
https://codereview.chromium.org/2690543003/diff/20001/ash/common/system/chromeos/network/sms_observer.cc File ash/common/system/chromeos/network/sms_observer.cc (right): https://codereview.chromium.org/2690543003/diff/20001/ash/common/system/chromeos/network/sms_observer.cc#newcode37 ash/common/system/chromeos/network/sms_observer.cc:37: message_center::MessageCenter::Get()->AddNotification( Now that this is owned by ash::Shell, I ...
3 years, 10 months ago (2017-02-14 00:47:21 UTC) #19
James Cook
Code looks fine, just nits. https://codereview.chromium.org/2690543003/diff/1/ash/common/system/chromeos/network/sms_observer_unittest.cc File ash/common/system/chromeos/network/sms_observer_unittest.cc (right): https://codereview.chromium.org/2690543003/diff/1/ash/common/system/chromeos/network/sms_observer_unittest.cc#newcode34 ash/common/system/chromeos/network/sms_observer_unittest.cc:34: std::unique_ptr<base::DictionaryValue> CreateMessage( On 2017/02/13 ...
3 years, 10 months ago (2017-02-14 02:04:38 UTC) #20
yiyix
@jamescook and stevenjb: Could you please take another look at this change? https://codereview.chromium.org/2690543003/diff/20001/ash/common/system/chromeos/network/sms_observer.cc File ash/common/system/chromeos/network/sms_observer.cc ...
3 years, 10 months ago (2017-02-15 19:41:39 UTC) #21
James Cook
LGTM. Nice patch. https://codereview.chromium.org/2690543003/diff/40001/ash/common/system/chromeos/network/sms_observer.cc File ash/common/system/chromeos/network/sms_observer.cc (right): https://codereview.chromium.org/2690543003/diff/40001/ash/common/system/chromeos/network/sms_observer.cc#newcode21 ash/common/system/chromeos/network/sms_observer.cc:21: namespace { nit: blank line below
3 years, 10 months ago (2017-02-15 19:49:48 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2690543003/60001
3 years, 10 months ago (2017-02-16 02:42:02 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/90cfee2509916bf517552bd6f69acb9d5086aeaf
3 years, 10 months ago (2017-02-16 05:39:31 UTC) #28
Evan Stade
Hi Yi, happy this landed! we should be able to delete a lot more NotificationView ...
3 years, 10 months ago (2017-02-16 19:21:12 UTC) #29
stevenjb
Indeed! I would love to see that code go away! crbug.com/685845 is tracking this. On ...
3 years, 10 months ago (2017-02-16 19:31:16 UTC) #30
yiyix
On 2017/02/16 19:21:12, Evan Stade wrote: > Hi Yi, > > happy this landed! we ...
3 years, 10 months ago (2017-02-16 21:41:13 UTC) #31
yiyix
On 2017/02/16 19:31:16, stevenjb wrote: > Indeed! I would love to see that code go ...
3 years, 10 months ago (2017-02-16 21:41:37 UTC) #32
stevenjb
sgtm! On Thu, Feb 16, 2017 at 1:41 PM, <yiyix@chromium.org> wrote: > On 2017/02/16 19:31:16, ...
3 years, 10 months ago (2017-02-16 23:05:10 UTC) #33
Evan Stade
3 years, 10 months ago (2017-02-17 21:23:47 UTC) #34
Message was sent while issue was closed.
thanks.


-- Evan Stade

On Thu, Feb 16, 2017 at 4:05 PM, Steven Bennetts <stevenjb@chromium.org>
wrote:

> sgtm!
>
> On Thu, Feb 16, 2017 at 1:41 PM, <yiyix@chromium.org> wrote:
>
>> On 2017/02/16 19:31:16, stevenjb wrote:
>> > Indeed! I would love to see that code go away!
>> >
>> > crbug.com/685845 is tracking this.
>> >
>> >
>> >
>> > On Thu, Feb 16, 2017 at 11:21 AM, <mailto:estade@chromium.org> wrote:
>> >
>> > > Hi Yi,
>> > >
>> > > happy this landed! we should be able to delete a lot more
>> NotificationView
>> > > code
>> > > now because I think SMS was the only user of that. Is this on your
>> radar?
>> > >
>> > > https://cs.chromium.org/chromium/src/ash/common/
>> > > system/tray/system_tray.cc?rcl=7b23d4a6d90df4d29fe04165c07da7
>> > > ff7d655e0e&l=614
>> > >
>> > > https://codereview.chromium.org/2690543003/
>> > >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Chromium-reviews" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an
>> email
>> > to mailto:chromium-reviews+unsubscribe@chromium.org.
>>
>> Could I assign the owner to me?
>>
>> https://codereview.chromium.org/2690543003/
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698