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

Issue 1961803002: Remove NoNotificationMessageView from empty message center (Closed)

Created:
4 years, 7 months ago by yoshiki
Modified:
4 years, 7 months ago
Reviewers:
dewittj
CC:
chromium-reviews, Peter Beverloo, kalyank, mlamouri+watch-notifications_chromium.org, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove NoNotificationMessageView from message center This patch removes NoNotificationMessageView which is shown when the message center has no notification, and instead the separated patch (crrev.com/1961813002) will show the no-notification message at the bottom label. This patch also fixes the geometry bug, which calculated the height wrongly, in ui/message_center/views/message_center_view.cc:286. BUG=599891 TEST=manually tested Committed: https://crrev.com/2768accc154d067704fb501967de68cba9fa4c3b Cr-Commit-Position: refs/heads/master@{#393833}

Patch Set 1 #

Patch Set 2 : Added tests of "mode". #

Total comments: 5

Patch Set 3 : Rebase #

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -162 lines) Patch
M ui/message_center/views/message_center_button_bar.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/message_center/views/message_center_button_bar.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M ui/message_center/views/message_center_view.h View 1 2 3 chunks +10 lines, -2 lines 0 comments Download
M ui/message_center/views/message_center_view.cc View 1 2 3 20 chunks +150 lines, -156 lines 0 comments Download
M ui/message_center/views/message_center_view_unittest.cc View 1 2 6 chunks +109 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (15 generated)
yoshiki
Justin, PTAL. Thanks.
4 years, 7 months ago (2016-05-12 19:42:34 UTC) #9
dewittj
Mostly looks great. Can you add some message_center_view_unittests to cover the new Mode that you're ...
4 years, 7 months ago (2016-05-12 20:03:04 UTC) #10
yoshiki
Justin, I added tests, PTAL again? Thanks.
4 years, 7 months ago (2016-05-13 05:08:13 UTC) #11
yoshiki
https://codereview.chromium.org/1961803002/diff/120001/ui/message_center/views/message_center_view.cc File ui/message_center/views/message_center_view.cc (right): https://codereview.chromium.org/1961803002/diff/120001/ui/message_center/views/message_center_view.cc#newcode286 ui/message_center/views/message_center_view.cc:286: (button_border ? button_border->GetInsets().height() : 0); As you mentioned in ...
4 years, 7 months ago (2016-05-13 05:10:48 UTC) #12
dewittj
lgtm with a nit, thanks! https://codereview.chromium.org/1961803002/diff/120001/ui/message_center/views/message_center_view.cc File ui/message_center/views/message_center_view.cc (right): https://codereview.chromium.org/1961803002/diff/120001/ui/message_center/views/message_center_view.cc#newcode286 ui/message_center/views/message_center_view.cc:286: (button_border ? button_border->GetInsets().height() : ...
4 years, 7 months ago (2016-05-13 19:54:13 UTC) #13
yoshiki
Thank you for reviewing! https://codereview.chromium.org/1961803002/diff/120001/ui/message_center/views/message_center_view.cc File ui/message_center/views/message_center_view.cc (right): https://codereview.chromium.org/1961803002/diff/120001/ui/message_center/views/message_center_view.cc#newcode286 ui/message_center/views/message_center_view.cc:286: (button_border ? button_border->GetInsets().height() : 0); ...
4 years, 7 months ago (2016-05-16 15:05:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1961803002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1961803002/200001
4 years, 7 months ago (2016-05-16 15:06:12 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:200001)
4 years, 7 months ago (2016-05-16 15:09:18 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-05-16 15:10:58 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2768accc154d067704fb501967de68cba9fa4c3b
Cr-Commit-Position: refs/heads/master@{#393833}

Powered by Google App Engine
This is Rietveld 408576698