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

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

Created:
4 years ago by yiyix
Modified:
3 years, 10 months ago
Reviewers:
tdanderson, stevenjb, sadrul
CC:
chromium-reviews, kalyank, stevenjb+watch_chromium.org, oshima+watch_chromium.org, sadrul
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. BUG=630641 TEST=system_tray_unittest

Patch Set 1 #

Total comments: 83

Patch Set 2 : address comments #

Total comments: 14

Patch Set 3 : address comments #

Total comments: 6

Patch Set 4 : address comments #

Total comments: 1

Patch Set 5 : update return type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -983 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 1 chunk +0 lines, -9 lines 0 comments Download
M ash/common/shelf/shelf_widget.h View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
M ash/common/shelf/shelf_widget.cc View 1 2 3 chunks +2 lines, -1 line 0 comments Download
A ash/common/system/chromeos/network/sms_observer.h View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A ash/common/system/chromeos/network/sms_observer.cc View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download
A ash/common/system/chromeos/network/sms_observer_unittest.cc View 1 2 3 4 1 chunk +146 lines, -0 lines 0 comments Download
M ash/common/system/chromeos/network/tray_sms.h View 1 chunk +0 lines, -67 lines 0 comments Download
M ash/common/system/chromeos/network/tray_sms.cc View 1 chunk +0 lines, -428 lines 0 comments Download
M ash/common/system/chromeos/screen_security/screen_tray_item.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M ash/common/system/status_area_widget.cc View 1 2 1 chunk +2 lines, -7 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 2 chunks +3 lines, -3 lines 0 comments Download
M ash/common/system/tray/system_tray.h View 1 2 6 chunks +2 lines, -32 lines 0 comments Download
M ash/common/system/tray/system_tray.cc View 1 2 14 chunks +5 lines, -125 lines 0 comments Download
M ash/common/system/tray/system_tray_bubble.h View 1 chunk +1 line, -5 lines 0 comments Download
M ash/common/system/tray/system_tray_bubble.cc View 4 chunks +0 lines, -9 lines 0 comments Download
M ash/common/system/tray/system_tray_item.h View 1 2 chunks +0 lines, -12 lines 0 comments Download
M ash/common/system/tray/system_tray_item.cc View 1 2 chunks +0 lines, -14 lines 0 comments Download
M ash/common/system/tray/system_tray_unittest.cc View 1 chunk +0 lines, -35 lines 0 comments Download
M ash/common/system/tray/tray_notification_view.h View 1 chunk +2 lines, -39 lines 0 comments Download
M ash/common/system/tray/tray_notification_view.cc View 4 chunks +5 lines, -72 lines 0 comments Download
M ash/common/system/tray_accessibility.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/tray_accessibility.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M ash/common/system/user/tray_user_unittest.cc View 1 6 chunks +6 lines, -6 lines 0 comments Download
M ash/common/system/web_notification/web_notification_tray.cc View 1 3 chunks +1 line, -4 lines 0 comments Download
M ash/resources/ash_resources.grd View 1 1 chunk +0 lines, -2 lines 0 comments Download
D ash/resources/default_100_percent/cros/status/status_sms.png View 1 Binary file 0 comments Download
D ash/resources/default_100_percent/cros/status/status_sms_dismiss.png View 1 Binary file 0 comments Download
D ash/resources/default_200_percent/cros/status/status_sms.png View 1 Binary file 0 comments Download
D ash/resources/default_200_percent/cros/status/status_sms_dismiss.png View 1 Binary file 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 1 chunk +18 lines, -36 lines 0 comments Download
M ash/system/web_notification/web_notification_tray_unittest.cc View 3 chunks +0 lines, -48 lines 0 comments Download
M ash/test/test_system_tray_item.h View 1 2 chunks +0 lines, -4 lines 0 comments Download
M ash/test/test_system_tray_item.cc View 1 3 chunks +1 line, -16 lines 0 comments Download

Messages

Total messages: 104 (88 generated)
yiyix
@tdanderson, could you please review this change? Thank you
3 years, 11 months ago (2017-01-26 17:09:28 UTC) #73
tdanderson
So far so good, but I have some comments below: https://codereview.chromium.org/2583393002/diff/280001/ash/common/shelf/shelf_widget.cc File ash/common/shelf/shelf_widget.cc (right): https://codereview.chromium.org/2583393002/diff/280001/ash/common/shelf/shelf_widget.cc#newcode276 ...
3 years, 11 months ago (2017-01-26 22:19:07 UTC) #74
tdanderson
https://codereview.chromium.org/2583393002/diff/280001/ash/common/system/chromeos/network/sms_observer.cc File ash/common/system/chromeos/network/sms_observer.cc (right): https://codereview.chromium.org/2583393002/diff/280001/ash/common/system/chromeos/network/sms_observer.cc#newcode84 ash/common/system/chromeos/network/sms_observer.cc:84: } else { Also, you can land this with ...
3 years, 11 months ago (2017-01-26 23:12:50 UTC) #75
yiyix
@tdanderson, Thank you so much for the detailed review. I have tried my best to ...
3 years, 10 months ago (2017-02-02 20:43:57 UTC) #76
yiyix
https://codereview.chromium.org/2583393002/diff/280001/ash/common/shelf/shelf_widget.cc File ash/common/shelf/shelf_widget.cc (right): https://codereview.chromium.org/2583393002/diff/280001/ash/common/shelf/shelf_widget.cc#newcode391 ash/common/shelf/shelf_widget.cc:391: sms_observer_->Shutdown(); On 2017/02/02 20:43:55, yiyix wrote: > On 2017/01/26 ...
3 years, 10 months ago (2017-02-02 21:24:19 UTC) #85
tdanderson
Yi, please see my next round of comments. https://codereview.chromium.org/2583393002/diff/280001/ash/common/shelf/shelf_widget.cc File ash/common/shelf/shelf_widget.cc (right): https://codereview.chromium.org/2583393002/diff/280001/ash/common/shelf/shelf_widget.cc#newcode276 ash/common/shelf/shelf_widget.cc:276: sms_observer_ ...
3 years, 10 months ago (2017-02-07 00:15:46 UTC) #93
sadrul
I will leave the review to tdanderson@, since I haven't worked on this in a ...
3 years, 10 months ago (2017-02-07 05:42:21 UTC) #94
yiyix
@tdanderson, could you please take another look at this change? @stevenjb, I create sms notification ...
3 years, 10 months ago (2017-02-07 22:03:22 UTC) #95
yiyix
3 years, 10 months ago (2017-02-07 22:03:56 UTC) #97
stevenjb
Thanks for working on this, I've wanted this done for ages! Can we move the ...
3 years, 10 months ago (2017-02-07 22:30:25 UTC) #98
stevenjb
Thanks for working on this, I've wanted this done for ages! Can we move the ...
3 years, 10 months ago (2017-02-07 22:30:30 UTC) #99
tdanderson
ash/common/system pieces LGTM with stevenjb@'s comments addressed. https://codereview.chromium.org/2583393002/diff/280001/ash/common/system/chromeos/network/sms_observer_unittest.cc File ash/common/system/chromeos/network/sms_observer_unittest.cc (right): https://codereview.chromium.org/2583393002/diff/280001/ash/common/system/chromeos/network/sms_observer_unittest.cc#newcode38 ash/common/system/chromeos/network/sms_observer_unittest.cc:38: for (message_center::NotificationList::Notifications::const_iterator ...
3 years, 10 months ago (2017-02-08 16:32:51 UTC) #100
yiyix
@stevenjb, Thank you for the reviewing. I have addressed your comments and I will split ...
3 years, 10 months ago (2017-02-09 02:01:49 UTC) #101
stevenjb
https://codereview.chromium.org/2583393002/diff/400001/ash/common/system/chromeos/network/sms_observer_unittest.cc File ash/common/system/chromeos/network/sms_observer_unittest.cc (right): https://codereview.chromium.org/2583393002/diff/400001/ash/common/system/chromeos/network/sms_observer_unittest.cc#newcode34 ash/common/system/chromeos/network/sms_observer_unittest.cc:34: base::DictionaryValue* CreateMessage(const char* kDefaultNumber, This should return a unique_ptr<> ...
3 years, 10 months ago (2017-02-09 19:12:38 UTC) #102
yiyix
On 2017/02/09 19:12:38, stevenjb wrote: > https://codereview.chromium.org/2583393002/diff/400001/ash/common/system/chromeos/network/sms_observer_unittest.cc > File ash/common/system/chromeos/network/sms_observer_unittest.cc (right): > > https://codereview.chromium.org/2583393002/diff/400001/ash/common/system/chromeos/network/sms_observer_unittest.cc#newcode34 > ...
3 years, 10 months ago (2017-02-10 07:05:03 UTC) #103
yiyix
3 years, 10 months ago (2017-02-10 17:06:35 UTC) #104
On 2017/02/09 19:12:38, stevenjb wrote:
>
https://codereview.chromium.org/2583393002/diff/400001/ash/common/system/chro...
> File ash/common/system/chromeos/network/sms_observer_unittest.cc (right):
> 
>
https://codereview.chromium.org/2583393002/diff/400001/ash/common/system/chro...
> ash/common/system/chromeos/network/sms_observer_unittest.cc:34:
> base::DictionaryValue* CreateMessage(const char* kDefaultNumber,
> This should return a unique_ptr<> to ensure ownership.

As promised, the first cl where "using notification center to display sms
messages" is ready for review: https://codereview.chromium.org/2690543003/

Powered by Google App Engine
This is Rietveld 408576698