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

Issue 2223943002: Eagerly delete replaced notifications from the database (Closed)

Created:
4 years, 4 months ago by Peter Beverloo
Modified:
4 years, 4 months ago
Reviewers:
johnme, Ilya Sherman
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Eagerly delete replaced notifications from the database Don't rely on the close() event to happen, instead, delete them as soon as we know one's being replaced. BUG=635326 Committed: https://crrev.com/3ce3c468088599dc190fc596d0780c319ed82d3d Cr-Commit-Position: refs/heads/master@{#410697}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Eagerly delete replaced notifications from the database #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -33 lines) Patch
M content/browser/notifications/notification_database.h View 2 chunks +7 lines, -4 lines 0 comments Download
M content/browser/notifications/notification_database.cc View 5 chunks +21 lines, -7 lines 0 comments Download
M content/browser/notifications/notification_database_unittest.cc View 1 9 chunks +82 lines, -16 lines 0 comments Download
M content/browser/notifications/platform_notification_context_impl.cc View 1 chunk +25 lines, -0 lines 0 comments Download
M content/browser/notifications/platform_notification_context_unittest.cc View 2 chunks +64 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-get-replacement.html View 4 chunks +6 lines, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
Peter Beverloo
+johnme for notifications +isherman for UMA addition
4 years, 4 months ago (2016-08-08 14:46:00 UTC) #2
johnme
*/notifications/ lgtm with nits https://codereview.chromium.org/2223943002/diff/1/content/browser/notifications/notification_database_unittest.cc File content/browser/notifications/notification_database_unittest.cc (right): https://codereview.chromium.org/2223943002/diff/1/content/browser/notifications/notification_database_unittest.cc#newcode578 content/browser/notifications/notification_database_unittest.cc:578: EXPECT_EQ(1u, deleted_notification_set.size()); Nit: s/1u/notifications_with_tag/ to ...
4 years, 4 months ago (2016-08-08 15:14:30 UTC) #4
johnme
Presumably there will also be a spike in not found UMA statuses, since you haven't ...
4 years, 4 months ago (2016-08-08 15:19:39 UTC) #5
Peter Beverloo
Thanks John! On 2016/08/08 15:14:30, johnme wrote: > Presumably there will also be a spike ...
4 years, 4 months ago (2016-08-08 16:29:53 UTC) #6
Ilya Sherman
metrics lgtm
4 years, 4 months ago (2016-08-08 20:02:05 UTC) #7
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/2223943002/20001
4 years, 4 months ago (2016-08-09 14:01:18 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-09 16:25:04 UTC) #12
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 16:38:54 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3ce3c468088599dc190fc596d0780c319ed82d3d
Cr-Commit-Position: refs/heads/master@{#410697}

Powered by Google App Engine
This is Rietveld 408576698