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

Issue 264123002: Google Now Message Center Stats (Closed)

Created:
6 years, 7 months ago by robliao
Modified:
6 years, 7 months ago
CC:
chromium-reviews, jar (doing other things), asvitkine+watch_chromium.org, rgustafson
Visibility:
Public.

Description

Google Now Message Center Stats Provide support for counting Google Now cards in the message center. BUG=369754 TBR=xiyuan@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269035

Patch Set 1 #

Total comments: 18

Patch Set 2 : CR Feedback #

Total comments: 6

Patch Set 3 : Text Update #

Patch Set 4 : Histogram Update #

Total comments: 11

Patch Set 5 : String and Constant Update #

Patch Set 6 : Label update #

Patch Set 7 : Wording Update #

Patch Set 8 : Refactor #

Total comments: 6

Patch Set 9 : Rename #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -23 lines) Patch
M chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
A chrome/browser/notifications/google_now_notification_stats_collector.h View 1 2 3 4 5 6 7 8 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/notifications/google_now_notification_stats_collector.cc View 1 2 3 4 5 6 7 8 1 chunk +77 lines, -0 lines 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/message_center_notifications_unittest_win.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/notifications/message_center_stats_collector.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/message_center_stats_collector.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +10 lines, -0 lines 0 comments Download
M ui/message_center/cocoa/popup_collection.mm View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ui/message_center/cocoa/tray_view_controller.mm View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ui/message_center/fake_message_center.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M ui/message_center/fake_message_center.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M ui/message_center/message_center.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M ui/message_center/message_center_impl.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -2 lines 0 comments Download
M ui/message_center/message_center_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -3 lines 0 comments Download
M ui/message_center/message_center_impl_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ui/message_center/message_center_observer.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M ui/message_center/message_center_tray.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ui/message_center/message_center_tray.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ui/message_center/message_center_types.h View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -1 line 0 comments Download
M ui/message_center/views/message_center_view.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ui/message_center/views/message_popup_collection.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 52 (0 generated)
robliao
isherman, dewittj: Please provide owner approval for these files. Thanks! isherman: tools/metrics/actions/actions.xml tools/metrics/histograms/histograms.xml dewittj: chrome/browser/notifications/google_now_notification_stats_collector.h ...
6 years, 7 months ago (2014-05-05 18:14:59 UTC) #1
dewittj
Would you mind counting the # of non-Now notifications as well? Also this lacks a ...
6 years, 7 months ago (2014-05-05 21:34:54 UTC) #2
Ilya Sherman
https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode42 chrome/browser/notifications/google_now_notification_stats_collector.cc:42: UMA_HISTOGRAM_SPARSE_SLOWLY( I don't think you need a sparse histogram ...
6 years, 7 months ago (2014-05-05 21:37:59 UTC) #3
robliao
On 2014/05/05 21:37:59, Ilya Sherman wrote: > https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc > File chrome/browser/notifications/google_now_notification_stats_collector.cc > (right): > > ...
6 years, 7 months ago (2014-05-05 22:39:17 UTC) #4
robliao
https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode42 chrome/browser/notifications/google_now_notification_stats_collector.cc:42: UMA_HISTOGRAM_SPARSE_SLOWLY( We want to avoid bucketing if at all ...
6 years, 7 months ago (2014-05-05 22:39:27 UTC) #5
Ilya Sherman
https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode42 chrome/browser/notifications/google_now_notification_stats_collector.cc:42: UMA_HISTOGRAM_SPARSE_SLOWLY( On 2014/05/05 22:39:28, robliao wrote: > We want ...
6 years, 7 months ago (2014-05-05 23:27:36 UTC) #6
robliao
https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode42 chrome/browser/notifications/google_now_notification_stats_collector.cc:42: UMA_HISTOGRAM_SPARSE_SLOWLY( We're interested in measuring the following specific numbers ...
6 years, 7 months ago (2014-05-05 23:33:55 UTC) #7
Ilya Sherman
https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode42 chrome/browser/notifications/google_now_notification_stats_collector.cc:42: UMA_HISTOGRAM_SPARSE_SLOWLY( That sounds fine. Please implement that cap. If ...
6 years, 7 months ago (2014-05-05 23:39:07 UTC) #8
robliao
https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode42 chrome/browser/notifications/google_now_notification_stats_collector.cc:42: UMA_HISTOGRAM_SPARSE_SLOWLY( When crunching stats for review, yes. To the ...
6 years, 7 months ago (2014-05-05 23:45:56 UTC) #9
Ilya Sherman
https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode42 chrome/browser/notifications/google_now_notification_stats_collector.cc:42: UMA_HISTOGRAM_SPARSE_SLOWLY( On 2014/05/05 23:45:56, robliao wrote: > When crunching ...
6 years, 7 months ago (2014-05-05 23:53:30 UTC) #10
robliao
https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode42 chrome/browser/notifications/google_now_notification_stats_collector.cc:42: UMA_HISTOGRAM_SPARSE_SLOWLY( We discovered that our sparse histograms on the ...
6 years, 7 months ago (2014-05-06 00:06:15 UTC) #11
Ilya Sherman
https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode42 chrome/browser/notifications/google_now_notification_stats_collector.cc:42: UMA_HISTOGRAM_SPARSE_SLOWLY( On 2014/05/06 00:06:15, robliao wrote: > We discovered ...
6 years, 7 months ago (2014-05-06 00:10:51 UTC) #12
robliao
https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode42 chrome/browser/notifications/google_now_notification_stats_collector.cc:42: UMA_HISTOGRAM_SPARSE_SLOWLY( Okay, so how does this sound then? UMA_HISTOGRAM_SPARSE_SLOWLY( ...
6 years, 7 months ago (2014-05-06 00:17:33 UTC) #13
Ilya Sherman
https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode42 chrome/browser/notifications/google_now_notification_stats_collector.cc:42: UMA_HISTOGRAM_SPARSE_SLOWLY( On 2014/05/06 00:17:33, robliao wrote: > Okay, so ...
6 years, 7 months ago (2014-05-06 00:18:15 UTC) #14
robliao
https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/1/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode42 chrome/browser/notifications/google_now_notification_stats_collector.cc:42: UMA_HISTOGRAM_SPARSE_SLOWLY( It's a done deal. On 2014/05/06 00:18:15, Ilya ...
6 years, 7 months ago (2014-05-06 00:25:28 UTC) #15
Ilya Sherman
https://codereview.chromium.org/264123002/diff/80001/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/80001/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode18 chrome/browser/notifications/google_now_notification_stats_collector.cc:18: const int kNotificationsMaxCount = 10; As I mentioned before, ...
6 years, 7 months ago (2014-05-06 00:33:38 UTC) #16
robliao
https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml#newcode7336 tools/metrics/histograms/histograms.xml:7336: + Count of the number of cards visible when ...
6 years, 7 months ago (2014-05-06 00:39:39 UTC) #17
robliao
6 years, 7 months ago (2014-05-06 00:39:41 UTC) #18
Ilya Sherman
https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml#newcode7336 tools/metrics/histograms/histograms.xml:7336: + Count of the number of cards visible when ...
6 years, 7 months ago (2014-05-06 00:42:41 UTC) #19
robliao
https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml#newcode7336 tools/metrics/histograms/histograms.xml:7336: + Count of the number of cards visible when ...
6 years, 7 months ago (2014-05-06 00:51:41 UTC) #20
Ilya Sherman
https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml#newcode7336 tools/metrics/histograms/histograms.xml:7336: + Count of the number of cards visible when ...
6 years, 7 months ago (2014-05-06 01:02:31 UTC) #21
robliao
https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml#newcode7336 tools/metrics/histograms/histograms.xml:7336: + Count of the number of cards visible when ...
6 years, 7 months ago (2014-05-06 01:16:24 UTC) #22
Ilya Sherman
https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml#newcode7336 tools/metrics/histograms/histograms.xml:7336: + Count of the number of cards visible when ...
6 years, 7 months ago (2014-05-06 01:24:24 UTC) #23
robliao
https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml#newcode7336 tools/metrics/histograms/histograms.xml:7336: + Count of the number of cards visible when ...
6 years, 7 months ago (2014-05-06 01:29:19 UTC) #24
Ilya Sherman
https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml#newcode7336 tools/metrics/histograms/histograms.xml:7336: + Count of the number of cards visible when ...
6 years, 7 months ago (2014-05-06 04:15:36 UTC) #25
robliao
https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/264123002/diff/80001/tools/metrics/histograms/histograms.xml#newcode7336 tools/metrics/histograms/histograms.xml:7336: + Count of the number of cards visible when ...
6 years, 7 months ago (2014-05-06 17:07:23 UTC) #26
dewittj
I think that a flag in OnNotificationDisplayed is more appropreate instead of a new method ...
6 years, 7 months ago (2014-05-06 18:21:47 UTC) #27
robliao
On 2014/05/06 18:21:47, dewittj wrote: > I think that a flag in OnNotificationDisplayed is more ...
6 years, 7 months ago (2014-05-06 18:33:42 UTC) #28
robliao
On 2014/05/06 18:21:47, dewittj wrote: > I think that a flag in OnNotificationDisplayed is more ...
6 years, 7 months ago (2014-05-06 18:33:45 UTC) #29
dewittj
unfortunately you still need to change all the implementors, since they rely on OnNotificationDisplayed being ...
6 years, 7 months ago (2014-05-06 18:37:34 UTC) #30
Ilya Sherman
LGTM
6 years, 7 months ago (2014-05-06 18:39:48 UTC) #31
robliao
On 2014/05/06 18:37:34, dewittj wrote: > unfortunately you still need to change all the implementors, ...
6 years, 7 months ago (2014-05-06 18:43:34 UTC) #32
dewittj
On 2014/05/06 18:43:34, robliao wrote: > On 2014/05/06 18:37:34, dewittj wrote: > > unfortunately you ...
6 years, 7 months ago (2014-05-06 18:50:30 UTC) #33
robliao
On 2014/05/06 18:50:30, dewittj wrote: > On 2014/05/06 18:43:34, robliao wrote: > > On 2014/05/06 ...
6 years, 7 months ago (2014-05-06 21:04:52 UTC) #34
dewittj
Sorry, I failed to notice the DisplayedNotification call in PoppedUpNotification. I think it's strange to ...
6 years, 7 months ago (2014-05-07 15:48:12 UTC) #35
robliao
On 2014/05/07 15:48:12, dewittj wrote: > Sorry, I failed to notice the DisplayedNotification call in ...
6 years, 7 months ago (2014-05-07 15:55:27 UTC) #36
dewittj
> If we use the flag, now everyone needs to reassess if they care about ...
6 years, 7 months ago (2014-05-07 16:20:54 UTC) #37
robliao
On 2014/05/07 16:20:54, dewittj wrote: > > If we use the flag, now everyone needs ...
6 years, 7 months ago (2014-05-07 17:45:25 UTC) #38
robliao
Refactored. TBR=xiyuan FYI.
6 years, 7 months ago (2014-05-07 18:44:43 UTC) #39
dewittj
thanks! lgtm + a few comments https://codereview.chromium.org/264123002/diff/160001/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/160001/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode58 chrome/browser/notifications/google_now_notification_stats_collector.cc:58: (notification->notifier_id().id == kChromeNowExtensionID); ...
6 years, 7 months ago (2014-05-07 18:56:57 UTC) #40
robliao
https://codereview.chromium.org/264123002/diff/160001/chrome/browser/notifications/google_now_notification_stats_collector.cc File chrome/browser/notifications/google_now_notification_stats_collector.cc (right): https://codereview.chromium.org/264123002/diff/160001/chrome/browser/notifications/google_now_notification_stats_collector.cc#newcode58 chrome/browser/notifications/google_now_notification_stats_collector.cc:58: (notification->notifier_id().id == kChromeNowExtensionID); On 2014/05/07 18:56:58, dewittj wrote: > ...
6 years, 7 months ago (2014-05-07 19:58:09 UTC) #41
dewittj
https://codereview.chromium.org/264123002/diff/160001/ui/message_center/message_center_types.h File ui/message_center/message_center_types.h (right): https://codereview.chromium.org/264123002/diff/160001/ui/message_center/message_center_types.h#newcode22 ui/message_center/message_center_types.h:22: MESSAGE_CENTER = 0, fine with me, just please adhere ...
6 years, 7 months ago (2014-05-07 19:59:14 UTC) #42
robliao
https://codereview.chromium.org/264123002/diff/160001/ui/message_center/message_center_types.h File ui/message_center/message_center_types.h (right): https://codereview.chromium.org/264123002/diff/160001/ui/message_center/message_center_types.h#newcode22 ui/message_center/message_center_types.h:22: MESSAGE_CENTER = 0, Already done. On 2014/05/07 19:59:15, dewittj ...
6 years, 7 months ago (2014-05-07 20:01:24 UTC) #43
robliao
The CQ bit was checked by robliao@chromium.org
6 years, 7 months ago (2014-05-07 20:04:49 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robliao@chromium.org/264123002/200001
6 years, 7 months ago (2014-05-07 20:08:11 UTC) #45
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-08 01:13:53 UTC) #46
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-08 03:11:05 UTC) #47
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-08 03:33:44 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium
6 years, 7 months ago (2014-05-08 03:33:45 UTC) #49
robliao
The CQ bit was checked by robliao@chromium.org
6 years, 7 months ago (2014-05-08 03:38:42 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robliao@chromium.org/264123002/200001
6 years, 7 months ago (2014-05-08 03:41:39 UTC) #51
commit-bot: I haz the power
6 years, 7 months ago (2014-05-08 05:08:27 UTC) #52
Message was sent while issue was closed.
Change committed as 269035

Powered by Google App Engine
This is Rietveld 408576698