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

Issue 1133813002: Introduce the NotificationIdGenerator in //content. (Closed)

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

Description

Introduce the NotificationIdGenerator in //content. We plan to move towards generating notification ids in //content rather than having a random GUID in the NotificationObjectProxy. This enables us to have deterministic ids, which will allow for clean replacements on desktop and many simplications on Android. BUG=485985 Committed: https://crrev.com/59d19e2c71476330518770dbd03e9ca6d68565f5 Cr-Commit-Position: refs/heads/master@{#331959}

Patch Set 1 #

Total comments: 16

Patch Set 2 : address comments #

Patch Set 3 : #

Total comments: 12

Patch Set 4 : address comments #

Patch Set 5 : #

Patch Set 6 : Windows build fix #

Total comments: 10

Patch Set 7 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+507 lines, -0 lines) Patch
A content/browser/notifications/notification_id_generator.h View 1 2 3 4 5 6 1 chunk +68 lines, -0 lines 0 comments Download
A content/browser/notifications/notification_id_generator.cc View 1 2 3 4 5 6 1 chunk +98 lines, -0 lines 0 comments Download
A content/browser/notifications/notification_id_generator_unittest.cc View 1 2 3 1 chunk +338 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
Peter Beverloo
+johnme for review
5 years, 7 months ago (2015-05-08 13:12:43 UTC) #2
johnme
Initial feedback. Haven't looked at tests. https://codereview.chromium.org/1133813002/diff/1/content/browser/notifications/notification_id_generator.cc File content/browser/notifications/notification_id_generator.cc (right): https://codereview.chromium.org/1133813002/diff/1/content/browser/notifications/notification_id_generator.cc#newcode32 content/browser/notifications/notification_id_generator.cc:32: stream << base::Hash(browser_context_->GetPath().value()); ...
5 years, 7 months ago (2015-05-08 15:35:26 UTC) #3
Peter Beverloo
Thanks John! Please take another look. https://codereview.chromium.org/1133813002/diff/1/content/browser/notifications/notification_id_generator.cc File content/browser/notifications/notification_id_generator.cc (right): https://codereview.chromium.org/1133813002/diff/1/content/browser/notifications/notification_id_generator.cc#newcode32 content/browser/notifications/notification_id_generator.cc:32: stream << base::Hash(browser_context_->GetPath().value()); ...
5 years, 7 months ago (2015-05-20 18:43:34 UTC) #4
Peter Beverloo
On 2015/05/20 18:43:34, Peter Beverloo wrote: > Thanks John! Please take another look. > > ...
5 years, 7 months ago (2015-05-26 15:38:34 UTC) #5
johnme
Thanks; sorry, still haven't looked at the test. https://codereview.chromium.org/1133813002/diff/40001/content/browser/notifications/notification_id_generator.cc File content/browser/notifications/notification_id_generator.cc (right): https://codereview.chromium.org/1133813002/diff/40001/content/browser/notifications/notification_id_generator.cc#newcode36 content/browser/notifications/notification_id_generator.cc:36: BASE_HASH_NAMESPACE::hash<base::FilePath>()(browser_context_->GetPath()); ...
5 years, 7 months ago (2015-05-27 18:18:36 UTC) #6
johnme
https://codereview.chromium.org/1133813002/diff/40001/content/browser/notifications/notification_id_generator_unittest.cc File content/browser/notifications/notification_id_generator_unittest.cc (right): https://codereview.chromium.org/1133813002/diff/40001/content/browser/notifications/notification_id_generator_unittest.cc#newcode12 content/browser/notifications/notification_id_generator_unittest.cc:12: namespace { Nit: It seems unusual to wrap the ...
5 years, 6 months ago (2015-05-28 11:00:02 UTC) #7
Peter Beverloo
Thanks! PTAL https://codereview.chromium.org/1133813002/diff/40001/content/browser/notifications/notification_id_generator.cc File content/browser/notifications/notification_id_generator.cc (right): https://codereview.chromium.org/1133813002/diff/40001/content/browser/notifications/notification_id_generator.cc#newcode36 content/browser/notifications/notification_id_generator.cc:36: BASE_HASH_NAMESPACE::hash<base::FilePath>()(browser_context_->GetPath()); On 2015/05/27 18:18:35, johnme wrote: > ...
5 years, 6 months ago (2015-05-28 12:51:45 UTC) #8
johnme
lgtm with nits - thanks! https://codereview.chromium.org/1133813002/diff/100001/content/browser/notifications/notification_id_generator.cc File content/browser/notifications/notification_id_generator.cc (right): https://codereview.chromium.org/1133813002/diff/100001/content/browser/notifications/notification_id_generator.cc#newcode24 content/browser/notifications/notification_id_generator.cc:24: // manager), thus SHA-1 ...
5 years, 6 months ago (2015-05-29 09:34:58 UTC) #9
Peter Beverloo
https://codereview.chromium.org/1133813002/diff/100001/content/browser/notifications/notification_id_generator.cc File content/browser/notifications/notification_id_generator.cc (right): https://codereview.chromium.org/1133813002/diff/100001/content/browser/notifications/notification_id_generator.cc#newcode24 content/browser/notifications/notification_id_generator.cc:24: // manager), thus SHA-1 is used to maximise preimage ...
5 years, 6 months ago (2015-05-29 12:34:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1133813002/120001
5 years, 6 months ago (2015-05-29 12:35:26 UTC) #13
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 6 months ago (2015-05-29 13:31:03 UTC) #14
commit-bot: I haz the power
5 years, 6 months ago (2015-05-29 13:32:03 UTC) #15
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/59d19e2c71476330518770dbd03e9ca6d68565f5
Cr-Commit-Position: refs/heads/master@{#331959}

Powered by Google App Engine
This is Rietveld 408576698