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

Issue 999933002: Store the actual notification data in the notification database. (Closed)

Created:
5 years, 9 months ago by Peter Beverloo
Modified:
5 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, dewittj, jam, Michael van Ouwerkerk
Base URL:
https://chromium.googlesource.com/chromium/src.git@n-db-GetNextNotificationId
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Store the actual notification data in the notification database. This patch introduces the actual functionality for storing notification data in the NotificationDatabase. There are three separate methods now, ReadNotificationData() and WriteNotificationData() and DeleteNotificationData(),, which do exactly what their names imply. These methods are covered by a variety of unit tests, but still aren't hooked up to any production code. Design document: http://goo.gl/TciXVp BUG=447628 Committed: https://crrev.com/513eb55786639861ac1f367520290493b5b14b61 Cr-Commit-Position: refs/heads/master@{#320761}

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : comments #

Total comments: 2

Patch Set 4 : #

Total comments: 10

Patch Set 5 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+385 lines, -72 lines) Patch
M content/browser/notifications/notification_database.h View 1 2 3 4 6 chunks +34 lines, -9 lines 0 comments Download
M content/browser/notifications/notification_database.cc View 1 2 3 4 5 chunks +98 lines, -24 lines 0 comments Download
M content/browser/notifications/notification_database_unittest.cc View 1 2 3 4 5 chunks +253 lines, -39 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
Peter Beverloo
Please take a look. This CL depends on the following two: https://codereview.chromium.org/1003843002/ https://codereview.chromium.org/1004493002/
5 years, 9 months ago (2015-03-12 22:55:39 UTC) #2
cmumford
https://codereview.chromium.org/999933002/diff/20001/content/browser/notifications/notification_database.cc File content/browser/notifications/notification_database.cc (right): https://codereview.chromium.org/999933002/diff/20001/content/browser/notifications/notification_database.cc#newcode35 content/browser/notifications/notification_database.cc:35: const char kKeySeparator = '\x00'; Not seriously suggesting this, ...
5 years, 9 months ago (2015-03-13 17:13:15 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/999933002/diff/20001/content/browser/notifications/notification_database.cc File content/browser/notifications/notification_database.cc (right): https://codereview.chromium.org/999933002/diff/20001/content/browser/notifications/notification_database.cc#newcode24 content/browser/notifications/notification_database.cc:24: // value: Decimal string which fits into an int64_t. ...
5 years, 9 months ago (2015-03-13 17:25:35 UTC) #4
Peter Beverloo
All done, thanks for the comments :) https://codereview.chromium.org/999933002/diff/20001/content/browser/notifications/notification_database.cc File content/browser/notifications/notification_database.cc (right): https://codereview.chromium.org/999933002/diff/20001/content/browser/notifications/notification_database.cc#newcode24 content/browser/notifications/notification_database.cc:24: // value: ...
5 years, 9 months ago (2015-03-13 20:32:32 UTC) #5
Bernhard Bauer
lgtm
5 years, 9 months ago (2015-03-13 20:57:35 UTC) #6
cmumford
https://codereview.chromium.org/999933002/diff/40001/content/browser/notifications/notification_database.cc File content/browser/notifications/notification_database.cc (right): https://codereview.chromium.org/999933002/diff/40001/content/browser/notifications/notification_database.cc#newcode156 content/browser/notifications/notification_database.cc:156: Status status = GetAndIncrementNextNotificationId(&batch, notification_id); What about just getting ...
5 years, 9 months ago (2015-03-13 21:03:40 UTC) #7
Peter Beverloo
Thank you for your comment!! https://codereview.chromium.org/999933002/diff/40001/content/browser/notifications/notification_database.cc File content/browser/notifications/notification_database.cc (right): https://codereview.chromium.org/999933002/diff/40001/content/browser/notifications/notification_database.cc#newcode156 content/browser/notifications/notification_database.cc:156: Status status = GetAndIncrementNextNotificationId(&batch, ...
5 years, 9 months ago (2015-03-16 11:56:45 UTC) #8
cmumford
Mostly nits. https://codereview.chromium.org/999933002/diff/60001/content/browser/notifications/notification_database.cc File content/browser/notifications/notification_database.cc (right): https://codereview.chromium.org/999933002/diff/60001/content/browser/notifications/notification_database.cc#newcode72 content/browser/notifications/notification_database.cc:72: next_notification_id_(0), Could initialize this (and state_) in ...
5 years, 9 months ago (2015-03-16 17:14:07 UTC) #9
Peter Beverloo
All done! Thank you for your thorough reviews :) https://codereview.chromium.org/999933002/diff/60001/content/browser/notifications/notification_database.cc File content/browser/notifications/notification_database.cc (right): https://codereview.chromium.org/999933002/diff/60001/content/browser/notifications/notification_database.cc#newcode72 content/browser/notifications/notification_database.cc:72: ...
5 years, 9 months ago (2015-03-16 17:48:23 UTC) #10
cmumford
lgtm
5 years, 9 months ago (2015-03-16 17:51:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/999933002/80001
5 years, 9 months ago (2015-03-16 18:21:00 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-16 18:55:13 UTC) #15
commit-bot: I haz the power
5 years, 9 months ago (2015-03-16 18:55:54 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/513eb55786639861ac1f367520290493b5b14b61
Cr-Commit-Position: refs/heads/master@{#320761}

Powered by Google App Engine
This is Rietveld 408576698